BitmapExtensions Methods

KGy SOFT Drawing Libraries

BitmapExtensions Methods KGy SOFT Drawing Libraries Help

The BitmapExtensions type exposes the following members.

Methods

  Name Description
Public method Static member CloneCurrentFrame
Creates a clone of the current frame of the provided Bitmap instance. Unlike the Bitmap(Image) constructor, this method preserves original pixel format, and unlike Bitmap.Clone(Rectangle,PixelFormat) method, this method returns a single frame image.
Public method Static member ExtractBitmaps
When image contains multiple pages, frames or multi-resolution sub-images, returns them as separated Bitmap instances. Otherwise, returns a new Bitmap with the copy of the original image.
Public method Static member GetColors
Gets the colors used in the defined bitmap. A limit can be defined in maxColors.
Public method Static member Resize
Resizes the image with high quality. The result is always a 32 bit ARGB image.
Public method Static member ToCursorHandle
Converts the provided bitmap to a CursorHandle, which can be passed to the System.Windows.Forms.Cursor constructor to create a new cursor.
Top
See Also

Reference