Show / Hide Table of Contents

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
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.