Hello everyone,

1. I have problem coloring bitmap loaded frm file. I
use WinCreateBitmapWindow for offscreen and transfer
to screen. However, The colors dont show up - or
showing up but wrong color :( 
I have tried to change the depth to 8/16 and nothing
changes.
Anyone please help solving this problem. 

Here is the sample code showing how to the offscreen
was created (Got it somewhere from this mailist):

bmp = BmpCreate(ImgDesc.width, ImgDesc.height,
bpp,NULL, &err);
bmpV3 = BmpCreateBitmapV3(bmp, kDensityDouble,
BmpGetBits(bmp), NULL);
        canvas = WinCreateBitmapWindow((BitmapType*)bmpV3,
&err);

..drawing pixels
WinSetForeColor(clrIndex);
WinPaintPixel(col, row);

2.Can I use 'MemPtrFree' pairs with 'MemGluePtrNew'?

many thanks

regards,

Peter



        
                
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

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

Reply via email to