Friday, August 17, 2007

Creating text with transparent background

Creating text with a transparent background is a problem that’s probably as old as the merry Palm OS function WinDrawChars. Many developers(including me) used abstruse techniques to create it(I used a bitmap lookup table, more on that if anyone is interested) - but I now found the official, PalmSource-approved, Palm TX safe way.

WinPushDrawState();
WinSetDrawMode(winOverlay);
WinPaintChar(char,xpos,ypos);
WinPopDrawState();

No comments: