ImageUtilitiesGetBitmap Method |
Gets a bitmap from a bitmap handle. Unlike the standard Image.FromHbitmap method, this method supports transparency.
Namespace:
callback.ShellBoost.Core.Utilities
Assembly:
callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax public static Bitmap GetBitmap(
IntPtr bitmapHandle,
bool fallback = true
)
Parameters
- bitmapHandle
- Type: SystemIntPtr
A bitmap handle. - fallback (Optional)
- Type: SystemBoolean
if set to true, fallback on Image.FromHbitmap if the bitmap doesn't support this method.
Return Value
Type:
Bitmap
A bitmap instance.
Exceptions Exception | Condition |
---|
ArgumentException | bitmapHandle is zero
or
the number of bits required to indicate the color of a pixel of input bitmap is not 32
or
input bitmap stride width is not supported. |
See Also