Hi Guys,

I need to extract a particular area from a Bitmap as a Bitmap.

I have the starting co-ordinate of the main bitmap and the length and
width of how much is to be extracted.

I tried out the below code,

Bitmap.createBitmap(Bitmap.createBitmap(mBitmapSource,0,0,30, 30));

Where 0 and 0 denote the starting position and 30 and 30 denotes the
width and height respectively.

But on executing i get IllegalArgumentException, checkWidthHeight
should be > 0.

Can someone please help me.

Regards,
R.Karthik
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to