Hi,

Need help.
Problem with coloring. The color on screen is far
different with the original and changing using
winpalette/WinSetForeColor/WinSetForeColorRGB effect
nothing. The source was created from pixels array,
paint onto offscreenwindow then copy them into actual
screen. ex. The green comes out with other color (pink
or something like that).


thanks.
Peter

//offscreen window
 BitmapPtr bmp;
 BitmapTypeV3*bmpV3;
 WinHandle canvas;
 ...
 ...
 bmp = BmpCreate(scrwidth, scrheight, 16, NULL, NULL);
 bmpV3 = BmpCreateBitmapV3(bmp,
kDensityDouble,BmpGetBits(bmp), NULL);
 canvas = WinCreateBitmapWindow((BitmapType*)bmpV3,
&err);
...
//setting up offscreen
WinSetDrawWindow(canvas);
WinSetDrawMode(winPaint);
WinSetCoordinateSystem(kCoordinatesDouble);
...
//drawing pixel to offscreen 
//clrIndex is the value pointing the colorindex
WinSetForeColor(clrIndex);
WinPaintPixel(col, row);
...
//copying from offscreen to actual screen
WinCopyRectangle(VFSFile->Gif->canvas,
WinGetDisplayWindow(), &rct, 0, 0, winPaint);





        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to