bmpAndroidMarker = BitmapFactory.decodeResource(context.getResources(), R.drawable.t_move2);
bmpAndroidMarkerResult = Bitmap.createBitmap(bmpAndroidMarker.getWidth(), bmpAndroidMarker.getHeight(), Bitmap.Config.ARGB_8888);
Canvas tempCanvas = new Canvas(bmpAndroidMarkerResult);
tempCanvas.rotate(direction+45, bmpAndroidMarker.getWidth()/2, bmpAndroidMarker.getHeight()/2);
tempCanvas.drawBitmap(bmpAndroidMarker, 0, 0, null);
This is the code that I wrote (borrowed). The icon is created inside the image, inside the list.
My problem is that when you turn this “arrow” it seems that it “pinches” part of the distant edges, as if they retained the original size of the bitmap images. I cannot figure out how to allow "overflow" and display the correct size image.
Is there any way to do this?
source
share