Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEcopybitmaptoclipboard

BOOL PEcopybitmaptoclipboard (hObject, lpPoint)

 

HWND 

hObject

The handle returned from PEcreate.

POINT* 

lpPoint

Pointer to POINT struct holding size.

 

This function places the current image, in the form of a bitmap, into the clipboard.

 

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.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

.NET developers, see PeFunction.Image.BitmapToClipboard

 

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.PEactions = 14 ' Calls PEcopybitmaptoclipboard

 

In Delphi, use...

PEGraph1.PEnarg1 := {width in pixels};

PEGraph1.PEnarg2 := {height in pixels};

PEGraph1.PEactions := gBmpToClip; {Calls PEcopybitmaptoclipboard}