Accusoft.FormFixSdk Namespace > FormImage Class : FromHbitmapWithResolution Method |
'Declaration Public Shared Function FromHbitmapWithResolution( _ ByVal workspace As FormFix, _ ByVal bitmap As IntPtr, _ ByVal horizontalResolution As Single, _ ByVal verticalResolution As Single, _ ByVal resolutionUnit As GraphicsUnit _ ) As FormImage
'Usage Dim workspace As FormFix Dim bitmap As IntPtr Dim horizontalResolution As Single Dim verticalResolution As Single Dim resolutionUnit As GraphicsUnit Dim value As FormImage value = FormImage.FromHbitmapWithResolution(workspace, bitmap, horizontalResolution, verticalResolution, resolutionUnit)
public static FormImage FromHbitmapWithResolution( FormFix workspace, IntPtr bitmap, float horizontalResolution, float verticalResolution, GraphicsUnit resolutionUnit )
public: static FormImage* FromHbitmapWithResolution( FormFix* workspace, IntPtr bitmap, float horizontalResolution, float verticalResolution, GraphicsUnit resolutionUnit )
public: static FormImage^ FromHbitmapWithResolution( FormFix^ workspace, IntPtr bitmap, float horizontalResolution, float verticalResolution, GraphicsUnit resolutionUnit )
This method accepts a handle to a WIN32 HBITMAP and creates a new FormImage object that contains a copy of that image. The bitmap must contain a binary (1 bit per pixel) image.
The overloaded FromHdib(IntPtr, FormFix) and FromHdib(IntPtr, Boolean, FormFix) methods are the fastest way to transfer images between Accusoft's components.