Class ImageTypeClass

Namespace
ESRI.ArcGIS.Carto
Assembly
ESRI.Server.Carto.dll
[ClassInterface(ClassInterfaceType.None)]
[Guid("56204983-18F4-4C25-969A-6F8EE6C11357")]
public class ImageTypeClass : ImageType, IImageType, IXMLSerialize, IPersistStream, IPersist
Inheritance
ImageTypeClass
Implements
Inherited Members

Constructors

ImageTypeClass()

public ImageTypeClass()

Explicit Interface Implementations

Deserialize(IXMLSerializeData)

Deserializes an object from XML.

virtual void Deserialize(IXMLSerializeData data)

Parameters

data IXMLSerializeData

Format

The image format.

virtual esriImageFormat Format { get; set; }

Returns

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;

GetClassID(out Guid)

virtual void GetClassID(out Guid pClassID)

Parameters

pClassID Guid

GetSizeMax(out _ULARGE_INTEGER)

virtual void GetSizeMax(out _ULARGE_INTEGER pcbSize)

Parameters

pcbSize _ULARGE_INTEGER

IPersist_GetClassID(out Guid)

virtual void IPersist_GetClassID(out Guid pClassID)

Parameters

pClassID Guid

IsDirty()

virtual void IsDirty()

Load(IStream)

virtual void Load(IStream pstm)

Parameters

pstm IStream

ReturnType

The return type.

virtual esriImageReturnType ReturnType { get; set; }

Returns

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.

Save(IStream, int)

virtual void Save(IStream pstm, int fClearDirty)

Parameters

pstm IStream
fClearDirty int

Serialize(IXMLSerializeData)

Serializes an object to XML.

virtual void Serialize(IXMLSerializeData data)

Parameters

data IXMLSerializeData