Visit Gigasoft's Web Site
 ProEssentials v11 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 8000 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

Bitmaps are uncompressed so we recommend no more than 4000 pixel units.

 

.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}