Property CompressionType
CompressionType
Gets or sets the compression type to use when building pyramids.
Declaration
public RasterPyramidCompressionType CompressionType { get; set; }
Property Value
| Type | Description |
|---|---|
| RasterPyramidCompressionType | The compression type to use when building pyramids. |
Remarks
The default value is Default. This allows the runtime to choose the compression used for the generated pyramids based on the raster.
A requested compression type must be supported by the raster format, pixel type, and underlying raster implementation. File-based rasters that support pyramids stored in a pyramid file (.ovr) can generally request Deflate, Jpeg, JpegYCbCr, Lzw, or None. JPEG-based options are generally appropriate only for compatible imagery where smaller file size is more important than preserving exact pixel values.
If the requested compression cannot be applied for the generated pyramids, the runtime may fall back to its default pyramid compression. Some unsupported format, pixel type, or implementation combinations can still cause pyramid building to fail. After the pyramid build operation completes successfully, use PyramidInfo to inspect the actual compression used for the generated pyramids.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300.1 |
| .NET Windows | 300.1 |
| .NET Android | 300.1 |
| .NET iOS | 300.1 |