ArcGIS Pro 2.7 API Reference Guide
SetCompression Method

ArcGIS.Desktop.Mapping Namespace > ImageServiceLayer Class : SetCompression Method
Type of compression.
Compression quality (if applicable).
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 10, Windows 8.1

See Also

Reference

ImageServiceLayer Class
ImageServiceLayer Members