This is the callback that replaces the IntersectClipRect GDI function.
#include "l_bitmap.h"
L_INT pEXT_CALLBACK YourFunction(pDisplay, nLeftRect, nTopRect, nRightRect, nBottomRect, pUserData)
Handle of the device context passed to the paint function.
x-coordinate of top-left corner.
y-coordinate of top-left corner.
x-coordinate of bottom-right corner.
y-coordinate of bottom-right corner.
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.)
The return values are the same as the return values for the corresponding GDI function.
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.
For an example, refer to L_PaintDCCallback.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document