The image format.
[Visual Basic .NET] Public Property Format As esriImageFormat
[C#] public esriImageFormat Format {get; set;}
[C++]
HRESULT get_Format(
esriImageFormat* ImageFormat
);
[C++]
HRESULT put_Format(
esriImageFormat ImageFormat
);
[C++]Parameters
ImageFormat [out, retval]ImageFormat is a parameter of type esriImageFormat
ImageFormat [in]ImageFormat is a parameter of type esriImageFormat
Product Availability
Remarks
Supported image formats include: BMP, JPG, DIB, TIFF, PNG, PNG24, PNG32, EMF, PS, PDF, GIF, SVG and SVGZ. When a PNG24 image is requested from MapServer and in the same request specifies a transparent color, a 32-bit PNG is returned in order to support the transparency. The transparency is within the alpha channel and only supports only binary transparency.
However PNG32 image format supports with full alpha channel transparency. PNG32 maintains transparency in the image that is set on the layer in the source map. To find out what image formats are supported by a map service, use the IMapServer2::ServiceConfigurationInfo property.
IImageType pImgType = new ImageType();
pImgType.Format = esriImagePNG32;