Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title SetClip with a bitmap
Ref. No. QNX.000009826
Category(ies) Development
Issue We need a function, similar to XSetClipMask, which sets a clip region to a bitmap.
Anything available under Photon?
Solution There are a set of functions:
x09PgSetFillDither()
x09PgSetFillTransPat()
x09PgSetStrokeDither()
x09PgSetFillTransPat()
x09
These usually cover what people are trying to do with the XSetClipMax() function. Often, X programmers use the function simply to create a repeated pattern to draw through (stipple) or a dither pattern.

Note that the patterns that can be defined in the above functions are only 8pixels-by-8pixels.

If you need more functionality, look at the PgDrawTImage() function. In case you are trying to draw something that is not an image, then it might be necessary to draw the object into a memory context, and then use that image to PgDrawTImage().