[android-developers] Flipping a draw 9 image horizonally..

2011-06-08 Thread Raj
Hi I am trying to rotate a draw 9 image horiontally. But all the stretching is done. Bitmap bmp = BitmapFactory.decodeResource(res,incomingColorId); Matrix matrix = new Matrix(); matrix.setScale(-1.0f, 1.0f); Bitmap

[android-developers] Flipping a draw 9 image horizonally..

2011-06-08 Thread Raj
Hi I am trying to rotate a draw 9 image horiontally. But all the stretching is done. Bitmap bmp = BitmapFactory.decodeResource(res,incomingColorId); Matrix matrix = new Matrix(); matrix.setScale(-1.0f, 1.0f); Bitmap incomingImageFlipped

Re: [android-developers] Flipping a draw 9 image horizonally..

2011-06-08 Thread Pepijn Van Eeckhoudt
You need to wrap the Bitmap in a NinePatchDrawable in order to get the stretching behavior. Pepijn On 08/06/2011 13:57, Raj wrote: Hi I am trying to rotate a draw 9 image horiontally. But all the stretching is done. Bitmap bmp =