View Single Post
  #6 (permalink)  
Old 03-08-2008, 12:34 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,883
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
Actually, fading two images on an Image
control is yet faster than fading on a form
I'd sort of expect that as a Form does extra things when assigned a bitmap in order to be able to redraw it.


Quote:
Image sizes are 640 x 480px.
The device, an iPAQ h2210, runs Pocket PC 2003.
Doing fast graphics on a screen that size is a bit ambitious for the processing power of a PPC. Unfortunately I can't speed it up any more and still write in C# as I've optimised it as much as I can. The code that does the work looks like
Code:
 *pixel3++ = (byte)((*pixel1++ * oldpercent + *pixel2++ * newpercent) / 100);
and I can't get it any simpler than that
Reply With Quote