ShellControlHelperFromHbitmap Method |
Converts a handle to a HBITMAP structure to an Image instance.
If the size given is lesser than 256 pixels in width and height,
the alpha channel is preserved.
Namespace: Jam.ShellAssembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntaxpublic static Image FromHbitmap(
IntPtr pHBitmap,
Size pSize,
out Bitmap pBitmapSource
)
Public Shared Function FromHbitmap (
pHBitmap As IntPtr,
pSize As Size,
<OutAttribute> ByRef pBitmapSource As Bitmap
) As Image
public:
static Image^ FromHbitmap(
IntPtr pHBitmap,
Size pSize,
[OutAttribute] Bitmap^% pBitmapSource
)
static member FromHbitmap :
pHBitmap : IntPtr *
pSize : Size *
pBitmapSource : Bitmap byref -> Image Parameters
- pHBitmap IntPtr
- bitmap handle
- pSize Size
- size structure
- pBitmapSource Bitmap
- The source used to create the Image. Only free after freeing the Image. May be null.
Return Value
ImageAn instance of
Image
See Also