Visit Gigasoft's Web Site
ProEssentials v7 Help

PEbitmapandgradients

BOOL PEbitmapandgradients(hObject, hPaintDC, hTargetDC, prectTarget)

 

HWND 

hObject

The handle returned from PEcreate.

HDC 

hPaintDC

A device context to use for creating compatible DCs and Bitmaps.  Generally the same DC as hTargetDC.

HDC 

hTargetDC

The device context where GDI content is sent.

RECT*

prectTarget

Device coordinates (pixels) matching SetViewportOrg and SetViewportExt for current device context.

 

This function sends bitmap and gradient GDI content to a target device context (DC) at device coordinates identified with prectTarget.  If sending a metafile to a DC, and you want to include gradient and bitmap features, you must first call this function before the PlayMetafile API call.  Also, the control must have PrepareImages and BitmapGradientMode properties set to TRUE.

 

The prectTarget coordinates should represet the same viewport origin and extents established for the PlayMetafile API call which usually follows this call.   

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

See the C#.NET Print Preview example project which shows the use of this function.