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.6.0
Syntax
public static class BitmapExtensions
<ExtensionAttribute> Public NotInheritable Class BitmapExtensions
[ExtensionAttribute] public ref class BitmapExtensions abstract sealed
[<AbstractClassAttribute>] [<SealedAttribute>] [<ExtensionAttribute>] type BitmapExtensions = class end
The BitmapExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
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.
| |
ExtractBitmaps | ||
GetColors |
Gets the colors used in the defined bitmap. A limit can be defined in maxColors.
| |
Resize |
Resizes the image with high quality. The result is always a 32 bit ARGB image.
| |
ToCursorHandle |
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