Sunday, September 11, 2011

[android-developers] Re: how to blit a row of a bitmap as fast as possible to the canvas?

Hi,

Create a single row bitmap, copy the row of pixels into the single row
bitmap, draw the single row bitmap on the canvas.

See http://developer.android.com/reference/android/graphics/Bitmap.html#getPixels(int[],
int, int, int, int, int, int)
and http://developer.android.com/reference/android/graphics/Bitmap.html#setPixels(int[],
int, int, int, int, int, int)

Regards

On Sep 10, 7:34 pm, Marco Alexander Schmitz
<marco.alexander.schm...@googlemail.com> wrote:
> Hello,
>
> Id like To take a row of a bitmap and paint IT To The canvas, as fast
> as possible, and over and over again. This is going to be a retro
> effekt... how can this be done? I rather dislike the idea of a for
> loop which paints from the bitmap e.g. 480 times.
>
> Thanks for advice,
> Marco

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate