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
=Bitmap.createBitmap(bmp,
0,0,bmp.getWidth(),bmp.getHeight(),matrix,false);
BitmapDrawable bd = new
BitmapDrawable(incomingImageFlipped);
listItemCellView.setBackgroundDrawable(bd.getCurrent());
But it doesn't stretch properly. It stretches like a regular image.
Any ideas any one
Thanks
Raj
--
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