Public Property MosaicMethod As RasterMosaicMethod
public RasterMosaicMethod MosaicMethod {get; set;}
Public Property MosaicMethod As RasterMosaicMethod
public RasterMosaicMethod MosaicMethod {get; set;}
{
//Note: needs to be called on the QueuedTask
// Get the image sub-layer from the mosaic layer.
ImageServiceLayer mosaicImageSubLayer = mosaicLayer.GetImageLayer();
// 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);
}
{
// Get the mosaic rule of the image service.
//Note: needs to be called on the QueuedTask
CIMMosaicRule mosaicRule = imageServiceLayer.GetMosaicRule();
// Set the Mosaic Method to Center.
mosaicRule.MosaicMethod = RasterMosaicMethod.Center;
// Update the image service with the changed mosaic rule.
imageServiceLayer.SetMosaicRule(mosaicRule);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)