Hello PalmWorld, I am having a rough time with a certain compositing operation and I need your help.
Here's my setup: - OS3.5 - screen depth set to 2 (hence, system color table has 4 entries: white, light gray, dark gray, black) - 2 offscreen windows of same size, both created after the screen depth was set to 2, using screenFormat - an image database record containing 2 filled rectangles: a black one (system color table index 3), and a light gray one (system color table index 1) - the record was successfully opened and copied into window #1 I need to obtain black silhouettes of the 2 squares in window #2, standing out over a white background. So I did this: .. WinPushDrawState (); // fill destination window with white WinSetDrawWindow (w2H); WinSetBackColor (0); WinFillRectangle (&bounds, 0); // write black where source pixels are not transparent WinSetBackColor (3); Err err; void WinCopyRectangle (w1H, w2H, &bounds, 0, 0, winMask, &err); WinPopDrawState(); .. The results are not what I expected. Destination window contains one silhouette: that of the original black rectangle. No silhouette for the original light gray rectangle. Wafud ?! Thanks in advance Alex -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
