ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ImageServiceLayer Class / SetCompression Method
Type of compression.
Compression quality (if applicable).
Version

SetCompression Method
Sets the compression. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetCompression( 
   string compression,
   int quality
)

Parameters

compression
Type of compression.
quality
Compression quality (if applicable).
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also