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

In This Topic
    SetCompression Method
    In This Topic
    Sets the compression. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetCompression( 
       string compression,
       int quality
    )
    Public Sub SetCompression( _
       ByVal compression As String, _
       ByVal quality As Integer _
    ) 

    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