An image is the base type for surfaces on which drawing can take place.

The classic image type is an RGB Bitmap. However images could encompass surfaces such as SVG vector output.

Hierarchy
System.Object
    WebSupergoo.ImageGlue8.ImageInfo
Methods
Method Description
ImageInfo Creates a new ImageInfo from the supplied image. The information reflects the state of the current active frame of the supplied image. The results are cached so they may become incorrect if you change the state of supplied Image.
Analyse Analyse the current frame of this image and populate the following properties.
  • VectorImageCount
  • PathPaintCount
  • PathClipCount
  • TextObjectCount
  • HasVectorAlpha
  • HasRasterAlpha
  • HasRasterMatte
  • TilingPatternCount
  • ShadingPatternCount
  • RasterImageCount
You can optionally pass in a function which will get called immediately after each property gets updated. If you return true from this callback the analysis will be cancelled. This can be used to limit the amount of processing if you are only interested in limited information.
Properties
Property Description
ClippingPath Any embedded clipping path. Clipping paths may be embedded in Photoshop, TIFF and JPEG images.
HasRasterAlpha Whether the image includes raster alpha. The alpha channels for raster images may be entirely opaque, but this is still counted as alpha because color blending changes as soon as you have any kind of alpha setting.

You must make a call to Analyse() to populate this property.

HasRasterMatte Whether the image includes raster mattes. Mattes are one bit masks which may be defined using a black and white stencil image or as a color range like a chromakey.

You must make a call to Analyse() to populate this property.

HasVectorAlpha Whether the image includes vector alpha. The alpha may have values which make it entirely opaque, but this is still counted as alpha because color blending changes as soon as you have any kind of alpha setting.

You must make a call to Analyse() to populate this property.

IsRaster Whether the image is a simple raster image.
IsRasterRotated Whether the image is a simple raster image which has undergone simple transforms. The transforms that are allowed are ninety degree rotations, horizontal and vertical mirroring. These transforms must result in an image which completely fills the bounds of the image. This does not necesssarily correspond with flags such as TIFF rotation because the transform may be applied on a pixel level during import.
PathClipCount The number of vector path clipping operations in the image.

You must make a call to Analyse() to populate this property.

PathPaintCount The number of vector path painting operations in the image.

You must make a call to Analyse() to populate this property.

RasterImageCount The number of raster bitmaps in the image.

You must make a call to Analyse() to populate this property.

ShadingPatternCount The number of shading patterns referenced in the image.

You must make a call to Analyse() to populate this property.

TextObjectCount The number of text objects in the image.

You must make a call to Analyse() to populate this property.

TilingPatternCount The number of tiling patterns referenced in the image.

You must make a call to Analyse() to populate this property.

VectorImageCount The number of subordinate vector drawings in the image.

You must make a call to Analyse() to populate this property.

Example

None.