Probably because createBitmap(Bitmap, int, int, int, int) returns an
immutable Bitmap.

On Wed, Jul 8, 2009 at 12:16 PM, Jack Ha<[email protected]> wrote:
>
> Is there a reason why Bitmap.createBitmap is being called twice?
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
>
>
> On Jul 8, 11:35 am, karthikr <[email protected]> wrote:
>> 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
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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