Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEcopypngtoclipboard

BOOL PEcopypngtoclipboard (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 PNG, onto 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.PngToClipboard

 

Ocx|Vcl developers, see the PEactions property.

 

With OCX interface, you can call this function as follows...

Pego1.PEnarg1 = 'width in pixels

Pego1.PEnarg2 = 'height in pixels

Pego1.PEactions = 16 ' Calls PEcopyoletoclipboard

 

In Delphi , use...

PEGraph1.PEnarg1 := {width in pixels};

PEGraph1.PEnarg2 := {height in pixels};

PEGraph1.PEactions := gOleToClip; {Calls PEcopyoletoclipboard}