I am new to programming on the PalmOS as of last
week. I've searched the archives but haven't found
what I'm looking for.
 I have tried using WinDrawPixel to draw out the
bits in the array of bytes that I have, but it's
extremely slow trying to draw out my largest
image(132x104pixels. That's 13,728 WinDrawPixel
calls!). I can not create these images as resources by
the CodeWarrior Constructor because the images needs
to be dynamic. I have tried drawing a 132x104 resource
though using WinDrawBitmap though and it's extremely
fast. I would like to be able to get something near
that performance if possible. Any help would be
greatly appreciated. I have given some more details of
the problem below.
 Assuming I have a 2-dimensional array like this:
The comments to the right emulate the pixels on the
screen. If you force your eyes to go out of focus you
can see the "4". To the left is the array. Each bit
represents a pixel.

{
{0x18,0x30,} // 0001100000110000
{0x18,0x30,} // 0001100000110000
{0x18,0x30,} // 0001100000110000
{0x1F,0xF0,} // 0001111111110000
{0x00,0x30,} // 0000000000110000
{0x00,0x30,} // 0000000000110000
{0x00,0x30,} // 0000000000110000
}

I understand that it might come out upside-down, etc.
I'm not concerned with that as much as I am looking
for what I need to do to turn an array into a bitmap.
Actually, I just want the performance of WinDrawBitmap
so any other method calls are fine too.
Thanks for your help!

-Joe Rushlow

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



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

Reply via email to