On Mon, Oct 30, 2000 at 05:00:57PM -0500, Rick Gadbois wrote:
> I am still unable to display a 4 bit bitmap as 16 color gray scale.  thanks
> for the help so far, anyone else have any ideas?
> 
> I've attempted this with 

Did you do the get supported modes call?  Was the value set?

What is  newDepth set to?

>       err =   WinScreenMode(winScreenModeSet, NULL, NULL,&newDepth, NULL);

Was err zero?

> (tried toggling the last parameter)
> 
> //then in my event handler
>       MemHandle resHandle = DmGetResource( bitmapRsc, FrontBodyGrayBitmap
> );    
>       BitmapPtr bmpPtr = (BitmapPtr)MemHandleLock( resHandle );
>       WinDrawBitmap( bmpPtr, 10,10);
>       MemHandleUnlock( resHandle );
>       DmReleaseResource( resHandle );
> 
> 16 grays display all black.......Frustrating!!!
> 
> Palm OS 3.5 IIIXE, CW6, WinNT
> Thanks in advance for any suggestions............
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/

-- 


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

Reply via email to