Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

PAINTCALLBACK_SETSTRETCHBLTMODE Function

Show in webframe

#include "l_bitmap.h"

L_INT pEXT_CALLBACK YourFunction(pDisplay, nStretchMode, pUserData)

L_VOID *pDisplay;

/* device context handle */

L_INT nStretchMode;

/* the new stretch mode */

L_VOID *pUserData;

/* pointer to additional data */

This is the callback that replaces the SetStretchBltMode GDI function.

Parameter

Description

pDisplay

Handle of the device context passed to the paint function.

nStretchMode

The new stretch mode.

pUserData

Void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the PAINTCALLBACKDATA structure.)

Returns

The return values are the same as the return values for the corresponding GDI function.

Comments

The internal display engine calls your callback function if you override the corresponding GDI function in the PAINTCALLBACKDATA structure.

pDisplay is the pDisplay member from the PAINTCALLBACKDATA structure that you passed to the paint function. The default callbacks expect it to be a HDC handle. But, if you override all the paint callbacks, it can be a pointer of any type you want.

Please see the Microsoft documentation for the values you are expected to return and for the meaning of the parameters before pUserData.

Required DLLs and Libraries

LTDIS

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

Example

For an example, refer to L_PaintDCCallback.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.