http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap%28android.graphics.Bitmap,%20int,%20int,%20boolean%29

Many things in Java, especially graphics operations, are implemented mainly by native code. I've traced 2D graphics calls all the way down to very specific JNI calls for particular transformations or bitblit or whatever. So, there's often little point in writing your own native code to implement something that the libraries already do since often they are well optimized. If you want to do something not already included, then it can make sense to go native.

sdw

On Sun Dec 18 21:27:02 2011, s.rawat wrote:
Hi Stephen, thanks for the reply,
Can you Plz elaborate the "methods" and "this" in your last sentence --> "There are *fast built-in methods* to do *this* well, but basically you create a pixel from a weighted average in color space of the pixels that the resulting pixel overlaps"
a ltmgfy link will be great !!!
Rgds,
Saurabh

"..pain is temporary.....quitting lasts forever......"



On Sun, Dec 18, 2011 at 3:07 AM, Stephen Williams <[email protected] 
<mailto:[email protected]>> wrote:

    There are fast built-in methods to do this well, but basically you create a 
pixel from a weighted average in color space
    of the pixels that the resulting pixel overlaps.




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

Reply via email to