[android-developers] crop a bitmap

2011-01-15 Thread crem
Hi i need  to crop a bitmap.
Especially, I need to cut of a fixed number of pixels from the top,
left, right and bottom of the bitmap.
Does android provide any methods for doing this?

greets

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] crop a bitmap

2011-01-15 Thread Kostya Vasilyev
Bernd,

This should help:

http://developer.android.com/reference/android/graphics/Bitmap.html

static Bitmap createBitmap(Bitmap source, int x, int y, int width, int
height)
Returns an immutable bitmap from the specified subset of the source bitmap.

-- Kostya

2011/1/15 crem bernd.warm...@gmail.com

 Hi i need  to crop a bitmap.
 Especially, I need to cut of a fixed number of pixels from the top,
 left, right and bottom of the bitmap.
 Does android provide any methods for doing this?

 greets

 --
 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en