Well, I managed to make some tests and what it comes out is:
1) the application on the simulator have a different result than on the
mobile. A part the color, that can be due to the fact that the simulator
has a kind of system palette, on the mobile byteSize doesn't reach all
the pixels of the screen, neither headerSize+bytesSize (this is weird!).
2) with operation like:
bitmapData[i] = bitmapData[i] * alpha;
the performances falls consistently. About this and considering that I
have ONLY to make the screen darker, I'm wondering if the most
performant way would be to change the application palette, or something
similar, so I don't have to pass and make calculations for all the pixels.
I reckon that it wouldn't be possible to make the application running at
2 bit of depth. Would it eventually make things much faster?
Thanks a lot for the patience, chr
--
___________________________________________________________________
{ Christian Giordano's site and blog @ http://nuthinking.com }
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/