Aaron Ardiri wrote in message <[EMAIL PROTECTED]>... >> I see (and saw) you're familiar with the topic. May I ask you a question? >> If I create a version 3 bitmap with BmpCreateBitmapV3 and denesityDouble >> constant, will the bits returning by BmpGetBits() have the same structure as >> the bits returning for the primary bitmap, on which this was created? > >bottom line, is that when you ask for a 160x160 image in 8bpp - you get >160*160 bytes of data, regardless of density. there is a good reference >set of how to use Bitmap's in the palm developer section on palm's website >(BitmapRsc.zip) >
I see what you mean, and it does make sense. But I don't understand some things, they did'nt noted in the palmos docs. Does BmpCreateV3 take bits as is and save the references to it in the header or does it create a full copy of the bits data. First case proves your words from another aspect, but if the latter and I create 1bpp bitmap, maybe there's a kind of transformation of just a bug in PalmOS 5 implementation. I suppose I might did something wrong in the code, but there were strange things. Let me explain the details. - I have working code, that uses Sony HR Library. I know they made not so convinent library to use, but anyway. There is a HRBmpCreate, I use 320x320x1bpp format. We get 12800 bytes in this case, so we need no segment complexities. I use HRWinCreateBitmapWindow to create an offscreen windows based on this bitmap. Later I don't need to use this library since the pair WinGetBitmap/BmpGetBits works properly. - When I add code to support High-Density, I change HRBmpCreate to simple BmpCreate, add BmpCreateBitmapV3 to work with a high-density bitmap. The "WinGetBitmap/BmpGetBits" pair stays unchanged (except it and moreover it gives me non-NULL results. But working with this bits leads to leaving Simulator. So the question is: Can i count on calculating "320x320x1bpp = 12800 bytes" in the case of High-Density bitmaps? Max -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
