Carl,
>Ok, I give up.
>
>The doc's say to prefix your PICT resources with '-2' to get OS3 to treat it
>as a 2bit per pixel bitmap, and '-c-2' to also compress the 2bit per pixel
>PICT resource. Cool.
I'm hoping the docs tell you to set the PICT resource name, not the
resource itself, right?
>Except when you try to do it!
>
>My PICT resource ID=1100, name = -c-2Banner shows up as a nice 4 color
>bitmap in Constructor, but the resultant header is:
>
>#define c2BannerBitmap 1100
>
>which must not be what Palm OS3+ is looking for, since it just shows up as a
>plain old black and white!
>
>And you can't even use -2Banner, the uncompressed version, since that
>generates:
>
>#define 2BannerBitmap 1100
>
>and the compiler complains about the mal-formed identifier name.
>
>
>So, how does one use Constructer to get OS3+ to correctly do the multi bit
>per pixel bitmaps?
1. The name of the resource must start with a '/' character and the
attribute section must end with a '/' character. After the ending '/'
you can have additional text.
2. The -c flag _disables_ bitmap compression, the -1 flag (default)
specifies that a 1-bit deep bitmap should be generated from the PICT,
and the -2 flag specifies that a 2-bit deep bitmap should be
generated.
3. Each option must be separated from the preceding option by a single space.
So for your example, you'd want the name to be "/-2/ Banner" to get a
compressed 2-bit deep bitmap.
Note that I'm not sure if all of this is implemented and working with
whatever version of the CodeWarrior PalmRez plugin you're using.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)