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 <karthik.scintill...@gmail.com> 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---