Gibson wrote:
[...]
>       protected void onDraw(Canvas canvas) {
>               Paint paint = new Paint();
>               paint.setARGB(255, 255, 255, 255);
>               canvas.drawRect(0, 0, screenWidth, screenHeight, paint);
>               canvas.drawBitmap(bitmap, 10, 10, null);
>               int[] imagedata = new int[100 * 100];
>               bitmap.getPixels(imagedata, 0, 100, 0, 0, 100, 100);
>               bitmap.setPixels(imagedata, 0, 100, 0, 0, 100, 100);

Without knowing for certain, I suspect that your bitmap is in RGB565 
format. Pixel data is always in ARGB888 format, so whenever you call 
setPixels() it does lossy format conversion. You may want to turn off 
dithering, as this will introduce noise.

-- 
David Given
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to