I want monochrome but using a depth of 1 in BmpCreate causes the jaggies. However, I think I have solved the problem.
According to the 4.0 SDK docs for WinCreateBitmapWindow: "The bitmap data will not be blitted properly if the depth of the screen is changed using WinScreenMode and the new window uses a bitmap that does not define the bitmap�s color table. See WinScreenMode for information on how to work around this limitation." By using WinScreenMode I can set the depth to one before I create my offscreen window. WinScreenMode(winScreenModeSet,NULL,NULL,&depth,NULL); It appears this will allow me to save a monochrome bitmap and later display it without jaggies. --- Aaron Ardiri <[EMAIL PROTECTED]> wrote: > > The problem is with the depth argument of the > > BmpCreate function. This page gives an > explanation: > > > > http://www.cuj.com/corrections/2002_c1.htm > > do you know how BmpCreate works? if you pass 1 for > depth, its going to give you a monochrome bitmap. > pass 2 or 4, and, then you can have some grayscale > pixels in your bitmap. > > no-one says you have to save it in 1bpp. > > --- > Aaron Ardiri > [EMAIL PROTECTED] > CEO - CTO > +46 70 656 1143 > Mobile Wizardry > http://www.mobilewizardry.com/ > > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
