In a windows monochrome bitmap, a 1 bit may represent either black or white
depending on the order of the colors in the color table. When you convert to
a Palm bitmap, you have to compensate for this and possibly invert the
bitmap bits

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sami K
Sent: Thursday, November 09, 2000 02:35
To: Palm Developer Forum
Subject: Inverted Image


Hello,
            I have developed an Palm application that receives a bitmap
image from the serial port which is sent from a PC. Then I display the image
on the Palm handheld. I have assigned the fields in the BitmapType
structure correctly. My problem is that when I display the image, it appears
to be inverted in color i.e white is inverted to black and vice versa. Can
anyone please figure out this problem.

BitmapPtr bitmap;

bitmap->width = 160;
bitmap->height = 160;
bitmap->rowBytes = 20;
bitmap->pixelSize = 1;
bitmap->nextDepthOffset = NULL;
bitmap->flags.compressed = 0;
bitmap->version = 1;
bitmap->flags.hasColorTable = 0;

Thanks in advance,
Sami
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.


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