ArcGIS Pro 3.0 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, Windows 8.1

    See Also