0
지도에 수많은 아이콘을 그려 놓습니다. 사실 아이콘은 회전 된 동일한 이미지에서 가져옵니다. 그러나지도에서 이미지가 두 가지 크기로 표시됩니다. 이유는 모르겠습니다. http://orangesoftware.net/arrow18.pngAndroid, 18x18 픽셀 서클 아이콘 회전, 결과 : 크기가 다른 아이콘?
아이콘 회전 코드 : 감사
Matrix mtx = new Matrix();
mtx.postRotate(unit.heading);
Bitmap bmp = BitmapFactory.decodeResource(getResources(),
R.drawable.arrow18);
Bitmap rotatedBMP = Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(),
bmp.getHeight(), mtx, true);
BitmapDrawable bmd = new BitmapDrawable(rotatedBMP);
어떤 마술 통찰력을, 감사
고마워요,하지만 ImageView가 없어요. 적어도 제가 아는 한 가지는 아닙니다 ... – Gerry
왜 당신의 비트 맵을 가지고 있을까요? –
android.graphics.drawable.Drawable – Gerry