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


IImageType.Format Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IImageType.Format Property

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

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

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.

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

See Also

IImageType Interface

.NET Related Topics

Managing application state | Map services