This document is archived and information here might be outdated.  Recommended version.

IImageType.Format Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > II > IImageType Interface > IImageType.Format Property
ArcGIS Developer Help

IImageType.Format Property

The image format.

[Visual Basic .NET]
Public Property Format As esriImageFormat
public esriImageFormat Format {get; set;}
HRESULT get_Format(
  esriImageFormat* ImageFormat
HRESULT put_Format(
  esriImageFormat ImageFormat
ImageFormat [out, retval]

ImageFormat is a parameter of type esriImageFormat* ImageFormat [in]
ImageFormat is a parameter of type esriImageFormat

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


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.

[C#] IImageType pImgType = new ImageType();
pImgType.Format = esriImagePNG32;

See Also

IImageType Interface