Logan Shaw wrote:
1. Create a bitmap with pnoJpegLib.
2. Create another bitmap with the BitmapRsrc routines,
making sure it's the same dimensions, same density,
and same pixel depth.
3. Wrap the second bitmap with a window by calling
WinCreateBitmapWindow().
4. Use WinDrawBitmap() to draw the first bitmap into
the window (and thus into the second bitmap).
5. Remove the window wrapper with WinDeleteWindow().
6. Delete the first bitmap.
7. Write the second bitmap into a resource.
- Logan
Hi Logan,
Your procedure above worked very sweet and solved the problem in a very
good way:
- I just Included the "BitmapRsrc.h" from BitmapRsrc sample.
- Created another bitmap using BmpRsrcCreate()
- Used WinCreateBitmapWindow() and WinDrawBitmap() to copy bitmap over it.
- Write the Rsrc bitmap with just 1 dmwrite()!
- delete the original and also Rsrc bitimap with BmpRsrcDelete()
Thanks very much for your complete explanation about the details
regarding PalmOS Bitmap structure.
Erico Franco
MicroMagic
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/