ShellBrowserFromHbitmap Method |
Note: This API is now obsolete.
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.Shell
Assembly:
ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax [ObsoleteAttribute("Please use ShellControlHelper.FromHbitmap")]
public static Image FromHbitmap(
IntPtr pHBitmap,
Size pSize,
out Bitmap pBitmapSource
)
<ObsoleteAttribute("Please use ShellControlHelper.FromHbitmap")>
Public Shared Function FromHbitmap (
pHBitmap As IntPtr,
pSize As Size,
<OutAttribute> ByRef pBitmapSource As Bitmap
) As Image
public:
[ObsoleteAttribute(L"Please use ShellControlHelper.FromHbitmap")]
static Image^ FromHbitmap(
IntPtr pHBitmap,
Size pSize,
[OutAttribute] Bitmap^% pBitmapSource
)
[<ObsoleteAttribute("Please use ShellControlHelper.FromHbitmap")>]
static member FromHbitmap :
pHBitmap : IntPtr *
pSize : Size *
pBitmapSource : Bitmap byref -> Image
Parameters
- pHBitmap
- Type: SystemIntPtr
hbitmap handle - pSize
- Type: System.DrawingSize
size structure - pBitmapSource
- Type: System.DrawingBitmap
The source used to create the Image. Only free after freeing the Image. May be null.
Return Value
Type:
ImageAn instance of
ImageSee Also