Interface IImageType

Namespace
ESRI.ArcGIS.Carto
Assembly
ESRI.Server.Carto.dll

Provides access to the Image Type Interface.

[Guid("EC27718B-0FA5-40E1-9685-376E49E93CB5")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IImageType

Remarks

Supported image formats include: PNG32, PNG24, PNG, JPG, GIF, BMP, DIB, TIFF, EMF, PS, PDF, AI, SVG and SVGZ. Please note that optimized MapServices do not support the Adobe Illustrator (AI) format. However they additionally support the PNG32 image format with full alpha channel transparency support. ReturnType includes URL and MimeData. If URL is specified the image is stored as a file at the specified location (Physical Output Directory) and can be accessed by internet clients through the Virtual Output Directory. If MIME is specified a stream of bytes is returned to the client.

Properties

Format

The image format.

esriImageFormat Format { get; set; }

Property Value

esriImageFormat

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;

ReturnType

The return type.

esriImageReturnType ReturnType { get; set; }

Property Value

esriImageReturnType

Remarks

ReturnType includes URL and MimeData. If URL is specified the image is stored as a file at the specified location (Physical Output Directory) and can be accessed by internet clients through the Virtual Output Directory. If MIME is specified a stream of bytes is returned to the client.