Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEcopyjpegtohglobal

DWORD  PEcopyjpegtohglobal(hObject, lpPoint, lphGlobal);

HWND 

hObject

The handle returned from PEcreate.

POINT* 

lpPoint

Pointer to POINT struct holding size.

HGLOBAL* 

lphGlobal

Handle to destination global object.

 

This function stores a JPG into a global memory object and returns the size of the object.  This can be used within low-level server control logic to stream JPG content to a browser, or just get the bits for a JPG image.

 

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

The amount of binary data stored.

 

Comments

This function is used internally to enable the .NET and ActiveX server controls to stream JPG states to the browser.

 

See Also: PEserializetohglobal, PEcopypngtohglobal, PeFunction.Image.JpegToStream