Detailed Description

Manages all current image formats.

Static Public Member Functions

static void Add (Type formatType)
 Adds the given image format to the global set for use. Note that you do not need to call this manually; Just deriving from ImageFormat is all that is required. More...
 
static ImageFormat GetInstance (string type)
 Gets an instance of a format by the given file type. More...
 
static ImageFormat Get (string type)
 Gets a format by the given file type. Note: These are global! More...
 

Static Public Attributes

static string UnrecognisedImageHandler ="pict"
 The "picture" format (jpeg, png etc) is the default handler. More...
 
static Dictionary< string,
ImageFormat
Formats
 The set of available formats. Use get to access. More...
 

Member Function Documentation

static void PowerUI.ImageFormats.Add ( Type  formatType)
inlinestatic

Adds the given image format to the global set for use. Note that you do not need to call this manually; Just deriving from ImageFormat is all that is required.

Parameters
formatTypeThe type for the format to add.
static ImageFormat PowerUI.ImageFormats.Get ( string  type)
inlinestatic

Gets a format by the given file type. Note: These are global!

Parameters
typeThe name of the format, e.g. "png".
Returns
An ImageFormat if found; unrecognised handler otherwise.
static ImageFormat PowerUI.ImageFormats.GetInstance ( string  type)
inlinestatic

Gets an instance of a format by the given file type.

Parameters
typeThe name of the format, e.g. "png".
Returns
An ImageFormat.

Member Data Documentation

Dictionary<string,ImageFormat> PowerUI.ImageFormats.Formats
static

The set of available formats. Use get to access.

string PowerUI.ImageFormats.UnrecognisedImageHandler ="pict"
static

The "picture" format (jpeg, png etc) is the default handler.