le 7/06/03 16:32, Matthew Fleming � [EMAIL PROTECTED] a �crit�:

> Palmeisters,
> 
> I've just done an armlet for decoding jpeg images, but the resulting images
> look like they don't have enough colors. What I've done is decode the images
> as 16 bit images without a color map, put the image data in feature memory,
> and then use BmpCreateBitmapV3 to make the bitmap from the image data. But
> the images look more like 8 bit images (with default color map) than 16 bit
> images.
> 
> I rechecked the docs, and found that BitmapTypeV3 is described as supporting
> only 8 bit images, so maybe this is the explanation for what I'm seeing.
> Does that sound reasonable?
> 
> I noticed that BitmapTypeV2 does allow for 16 bits, but it doesn't look like
> there is anything like BmpCreateBitmapV3 that would allow a 16 bit V2 bitmap
> to be made from data in feature memory; is this correct?  Would it help to
> convert my V3 images to V2's, and is this possible? How do you make a V2
> bitmap, anyway?
> 
> If I can't use V2's, it looks like my best bet would be to ask the armlet to
> generate 8 bit image data along with a custom color map, and then install
> that map in my V3 image. Agreed?
> 
> Your assistance much appreciated.
> 
> Matthew Fleming
> 
> 

If your image gets displayed, then it shows that BmpCreateBitmapV3  does
support 16-bit images.

Gray-level devices are set to bw by default, and you need to call
WinScreenMode in order to display gray level pictures.

I'm not sure of the following, but maybe colour devices have the same
behaviour.

Also are you sure you pixels are properly set ? Maybe the layout is not what
you think, a typical layout would be 1555 (with first bit lost), but the
layout on Palm could be different, like 5551, or even 5155 or 5515.

At the point you're at, it's obviously not much work to try all these
layouts.

-------------------------------
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
-------------------------------


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

Reply via email to