Terry, 

rowBytes does not have to be even.  
        UInt32  numBits = bitsPerPixel * (UInt32) width;
        UInt32  rowBytes = (numBits + 7) / 8;

How is it that you are having to concern yourself with this?  The
conversion tools should all handle this properly.  Is your source image
in an odd depth or something like that?  What tools are you using? 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Terry
> Sent: Wednesday, January 05, 2005 2:45 AM
> To: Palm Developer Forum
> Subject: Even Rowbytes?
> 
> 
> Do RowBytes in a bitmap need to be even? Or what?
> 
> The PalmSource docs don't mention it, but the errors I'm 
> getting make me wonder...
> 
> Terry
> 
> 
> 
> --
> For information on using the Palm Developer Forums, or to 
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
> 

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

Reply via email to