Hi
Is there a relatively easy way to be able to read and write pixels in a bitmap very quickly. I've found in other languages e.g. VB6 there was a Plot function which was ok until you wanted to plot a lot of points so then the API SetPixel was found to be faster and then again DirectX was even faster.
I'm not expecting B4A to do anything like this but it seems fairly apparent that e.g. agraham's jpeg library can process the pixels within a 240x320 jpeg in about 0.1 secs but to do something similar on the same device (HTC Wildfire) by using Bitmap.GetPixel() takes much longer.
So I'm just wondering if there is a middle ground where you could get to the underlying bitmap pixels more quickly to process them e.g. if you wanted to calculate their HSV values or do some simple 2D games etc. Perhaps this would be possible in a java library?
Hope this makes sense...?
Thanks
Is there a relatively easy way to be able to read and write pixels in a bitmap very quickly. I've found in other languages e.g. VB6 there was a Plot function which was ok until you wanted to plot a lot of points so then the API SetPixel was found to be faster and then again DirectX was even faster.
I'm not expecting B4A to do anything like this but it seems fairly apparent that e.g. agraham's jpeg library can process the pixels within a 240x320 jpeg in about 0.1 secs but to do something similar on the same device (HTC Wildfire) by using Bitmap.GetPixel() takes much longer.
So I'm just wondering if there is a middle ground where you could get to the underlying bitmap pixels more quickly to process them e.g. if you wanted to calculate their HSV values or do some simple 2D games etc. Perhaps this would be possible in a java library?
Hope this makes sense...?
Thanks