
public class CIMMosaicRule : CIMObject, System.ComponentModel.INotifyPropertyChanged, System.Xml.Serialization.IXmlSerializable
Public Class CIMMosaicRule Inherits CIMObject Implements System.ComponentModel.INotifyPropertyChanged, System.Xml.Serialization.IXmlSerializable
await QueuedTask.Run(() => { // Get the image sub-layer from the mosaic layer. ImageServiceLayer mosaicImageSubLayer = mosaicLayer.GetImageLayer() as ImageServiceLayer; // Get the mosaic rule. CIMMosaicRule mosaicingRule = mosaicImageSubLayer.GetMosaicRule(); // Set the Mosaic Method to Center. mosaicingRule.MosaicMethod = RasterMosaicMethod.Center; // Update the mosaic with the changed mosaic rule. mosaicImageSubLayer.SetMosaicRule(mosaicingRule); });
await QueuedTask.Run(() => { // Get the image sub-layer from the mosaic layer. ImageServiceLayer mosaicImageSublayer = mosaicLayer.GetImageLayer() as ImageServiceLayer; // Get the mosaic rule. CIMMosaicRule mosaicRule = mosaicImageSublayer.GetMosaicRule(); // Set the Mosaic Operator to Mean. mosaicRule.MosaicOperatorType = RasterMosaicOperatorType.Mean; // Update the mosaic with the changed mosaic rule. mosaicImageSublayer.SetMosaicRule(mosaicRule); });
await QueuedTask.Run(() => { // Get the mosaic rule of the image service. CIMMosaicRule mosaicRule = isLayer.GetMosaicRule(); // Set the Mosaic Method to Center. mosaicRule.MosaicMethod = RasterMosaicMethod.Center; // Update the image service with the changed mosaic rule. isLayer.SetMosaicRule(mosaicRule); });
await QueuedTask.Run(() => { // Get the mosaic rule of the image service. CIMMosaicRule mosaicingRule = isLayer.GetMosaicRule(); // Set the Mosaic Operator to Mean. mosaicingRule.MosaicOperatorType = RasterMosaicOperatorType.Mean; // Update the image service with the changed mosaic rule. isLayer.SetMosaicRule(mosaicingRule); });
System.Object
ArcGIS.Core.CIM.CIMObject
ArcGIS.Core.CIM.CIMMosaicRule
Target Platforms: Windows 11, Windows 10