FormFix v6.0 for .NET - Updated
FromHbitmapWithResolution Method



Accusoft.FormFixSdk Namespace > FormImage Class : FromHbitmapWithResolution Method
A reference to the FormFix workspace object.
The WIN32 HBITMAP handle to copy into the new object.
The horizontal resolution of the image in the units specified by the resolutionUnit parameter.
The vertical resolution of the image in the units specified by the resolutionUnit parameter.
The measurement unit of the resolution.
Creates a new object and places a copy of the given image into it.
Syntax
'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)

Parameters

workspace
A reference to the FormFix workspace object.
bitmap
The WIN32 HBITMAP handle to copy into the new object.
horizontalResolution
The horizontal resolution of the image in the units specified by the resolutionUnit parameter.
verticalResolution
The vertical resolution of the image in the units specified by the resolutionUnit parameter.
resolutionUnit
The measurement unit of the resolution.

Return Value

A new FormImage object that contains a copy of the original image.
Remarks

This method accepts a handle to a WIN32 HBITMAP and creates a new FormImage object that contains a copy of that image. The hbitmap handle 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.

See Also

Reference

FormImage Class
FormImage Members

Is this page helpful?
Yes No
Thanks for your feedback.