Your Code and the naming convention works fine with 2 bit bitmaps.
But when used with 4 -bit or 8-bit bitmap  the linker gives error #32
Please check it again



>From: Prakash <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Re: changing 1-bit to 4-bit gray  (Help!)
>Date: Fri, 17 Aug 2001 07:47:00 -0700 (PDT)
>
>
>     * Create the 4 bit Bitmap/icon in constructor
>
>     * Name the bitmap/icon starting with /-2/ [e.g /-2/Splash]
>
>     * Add this, preferably in AppStart()
>
>       UInt32 scrDepth = 2;
>       UInt32 scrWidth = 160;
>       UInt32 scrHeight = 160;
>
>       WinScreenMode(winScreenModeSet,&scrWidth,&scrHeight,&scrDepth,0);
>       FtrSet(sysFtrCreator,sysFtrNumDisplayDepth,scrDepth);
>
>    This way, it works for me!
>
>    Hope this might help you..
>
>Best Regards,
>Prakash
>
>PS: Other possible strange prefixes
>
>      /-2/    A grayscale image with 2 bits per pixel
>      /-1/    A black and white image with 1 bit per pixel
>      /-c/    Compresses the bitmap resource to save memory
>      /-c-2/  Compresses the resource and displays it as a 2-bit grayscale 
>image
>      /-c-1/  Compresses the resource and displays it as a black and white 
>image
>
>
>
>
>
>
>--- Todd Walk <[EMAIL PROTECTED]> wrote:
> > The monochrome devices seem to start in 1-bit, but I
> > need to change to 4-bit.
> >
> > After looking again at Aaron's toggle program, I still
> > don't really understand how this works.
> >
> > WinScreenMode as used below doesn't seem to do anything.
> > -----------------------------------------------------------
> >   tmpdepthP=4;
> >   WinScreenMode(winScreenModeSet,NULL,NULL,&tmpdepthP,NULL);
> > -----------------------------------------------------------
> >
> > From toggle, I get the below.  (Where is this documented?)
> > This make it so the *second* time I run, I get 4-bits.
> > (Changes the depth after the program exits.)
> > -----------------------------------------------------------
> >   FtrSet(sysFtrCreator, sysFtrNumDisplayDepth, 4);
> > -----------------------------------------------------------
> >
> > So how do I change to and from 1-bit and 4-bit?
> >
> > Todd.
> >
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe, 
>please
> > see http://www.palmos.com/dev/tech/support/forums/
>
>
>__________________________________________________
>Do You Yahoo!?
>Make international calls for as low as $.04/minute with Yahoo! Messenger
>http://phonecard.yahoo.com/
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, 
>please see http://www.palmos.com/dev/tech/support/forums/


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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