PEcopybitmaptofile
BOOL PEcopybitmaptofile (hObject, lpPoint, lpszFilename)
HWND
|
hObject
|
The handle returned from PEcreate.
|
HWND
|
hObject
|
The handle returned from PEcreate.
|
POINT*
|
lpPoint
|
Pointer to POINT struct holding size.
|
WCHAR*
|
lpszFilename
|
Pointer to null-terminated string.
|
This function places the current image, in the form of a bitmap, into a file named by lpszFilename.
Parameter
|
Description
|
lpPoint
|
Pointer to a POINT struct where POINT.x stores the number of pixels wide and POINT.y stores the number of pixels high. The dimensions must be between 32 and 2000 pixels. To insure image quality, the aspect ratio (width/height) must be between 0.333 and 10.0.
|
lpszFilename
|
This pointer must identify a valid filename.
|
Returns
NonZero if the function was successful, otherwise Zero.
Comments
.NET developers, see PeFunction.Image.BitmapToFile
Ocx|Vcl developers, see the PEactions property.
With ActiveX interface, you can call this function as follows...
Pego1.PEnarg1 = 'width in pixels
Pego1.PEnarg2 = 'height in pixels
Pego1.PEstrarg1 = 'filename
Pego1.PEactions = 15 ' Calls PEcopybitmaptofile
|
In Delphi, use...
PEGraph1.PEnarg1 := {width in pixels};
PEGraph1.PEnarg2 := {height in pixels};
PEGraph1.PEstrarg1 := {filename};
PEGraph1.PEactions := gBmpToFile; {Calls PEcopybitmaptofile}
|
|