Top level object that represents a raster Image.
Hierarchy
System.Object
WebSupergoo.ImageGlue8.Image
WebSupergoo.ImageGlue8.Bitmap
Interfaces
System.IDisposable
Notes

This class is sealed. It cannot be derived from.

Methods
Method Description
Bitmap Creates a new Bitmap. If an image is provided then it will be drawn into the new Bitmap, scaled to fill the entire space. If an image is provided but no width or height then the new Bitmap will take its dimensions from the supplied image.
Clone Makes a deep copy of the current Bitmap.
Commit Commits all changes to the image and ensures that any content is rasterized.
S» FromSystemDrawingBitmap Creates an ImageGlue Bitmap from a System.Drawing Bitmap.
GetPixel Gets the RGB color of a particular pixel. This function is provided for compatibility with System.Drawing. However for efficiency and flexibility you should prefer BitmapData.GetPixel.
LockBits Locks the Bitmap and return the raw data.

Converting between pixel formats is expensive so where possible you should try and use the current pixel format of the Bitmap.

If you specify a pixel format which is different from the current one try and specify ImageLockMode.ReadOnly as this obviates the need to write the pixels back to the original image.

Typically you will want to lock the entire area of the Bitmap, but for convenience you can lock a smaller area using the rect parameter. However it is important to note that the Scan0 property of the returned BitmapData specifies a pointer to a byte, so the left coordinate of the rectangle you provide must be on a byte boundary. If this is not the case an exception will be raised.

MakeTransparent Makes a color transparent by setting the alpha value of all matching pixels to zero. For how to implement a fuzzy match see the AdjustColors function.
Resize Resize the bitmap to a certain dimension or area. This resizes the drawing area rather than any content that already exists there. If the width or height increases then new blank space will be uncovered at the right and bottom respectively. If they decrease then space at the right and bottom will be removed.
SetPixel Sets the RGB color of a particular pixel. This function is provided for compatibility with System.Drawing. However for efficiency and flexibility you should prefer BitmapData.SetPixel.
SetResolution Set the resolution of the bitmap to a certain dimension or area. Changing the resolution does not change content in the Bitmap - the scale is left unchanged.
S» ToSystemDrawingBitmap Creates a System.Drawing Bitmap from an ImageGlue Bitmap. Because System.Drawing is RGB only there may be some change of color space or depth.
UnlockBits Unlock bits locked by a previous call to LockBits.
Example

None.