As Bob mentioned earlier, you need to create a family.
A family is a logical grouping of images which are munged together to form a
single tBMP (bitmap family) or tAIB (app icon family) resource on the device.
You specify the bit-depth, the compression (if any), the transparency (if any ),
and the image ID for the images that can go into a family (the image here is a
Constructor Bitmap ortechnically a Pict).
There can atmost be 4 images in a family and all must be in increasing order of
depth.
No two images can be of the same depth.
All images in the family must have the same dimensions.
What's the idea behind all this ? You can munge together an 8-bit image and a
1-bit imag so that the OS chooses the correct one while running at different
bit-depths (which is probably the way for you to go).
If you only have an 8-bit image, and you are running on a 1-bit depth device the
OS will try and do a color-match for the colors in the image so as to render in
1-bit depth. This image may not necessarily come out as a pleasant viewable
one!
One way of trying to see if your colors do end up correctly on a 1-bit depth
device is to use the "Recolor with current table" option in Constructor
(although the Win functionality is now complete I think it gets posted next
week). So you create your image in 8-bit depth and then select a 1-bit palette.
Next do a "Recolor" and you will get a good idea as to how the image is going to
show up when you run it on the device.
In earlier versions of Constructor you could create a 2-bit icon ("Multibit
icon") or a 2-bit depth bitmap (by naming the resource in a certain way). The
idea behind the "family" resources is to eliminate that confusion. Remember
that the "family" resources are logical - they never show up in the actual prc;
they only help in guiding PalmRez to create the tBMP or tAIB resource.
Hope this helps,
--vivek
"Mike Davis" <[EMAIL PROTECTED]> on 02/23/2000 11:57:05 AM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "Mike Davis" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: "Palm Developer Forum" <[EMAIL PROTECTED]> (Vivek
Magotra/HQ/3Com)
Subject: Re: Color Bitmap Compatibility 3.0 vs 3.5 - How?
> At 5:49 AM +0100 23-02-00, Mike Davis wrote:
> >I think I read something about a bitmap family. Is that how this is
> >handled? A bitmap for color and one for b/w? Is the swap choice done
> >automatically or does it have to be made programmaticlly?
>
> The OS automatically chooses the colors at the best depth. A family just
> contains many depths. ...this is all well documented by now, go to the
> palm website (http://www.palm.com), to the developer zone, and look for
> 3.5 docs or the slides from the PalmSource developers conference.
I have looked around and do not find what I am looking for. What I
have is a bitmap image that has display a background. I also have
some buttons that are represented by the bitmap. On color they
appear as I like (in color) but on b/w machines the color is
represented as some buttons black and others light with black
borders. What I would like is color button on color machine and all
light buttons with dark border on b/w machines.
What is the best way to do that?
> --Bob
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
>
--
-----------------------------------------------------------------
Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html