BitmapExtensions Class

KGy SOFT Drawing Libraries Help
Contains extension methods for the Bitmap type.
Inheritance Hierarchy


Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.7.0

public static class BitmapExtensions

The BitmapExtensions type exposes the following members.


Public methodStatic memberCloneCurrentFrame
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 methodStatic memberExtractBitmaps
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 methodStatic memberGetColors
Gets the colors used in the defined bitmap. A limit can be defined in maxColors.
Public methodStatic memberResize
Resizes the image with high quality. The result is always a 32 bit ARGB image.
Public methodStatic memberToCursorHandle
Converts the provided bitmap to a CursorHandle, which can be passed to the System.Windows.Forms.Cursor constructor to create a new cursor.
See Also