2
나는이 기능으로 이미지의 크기를 감소하고
Drawable reduceImageSize (String path)
{
BitmapDrawable bit1 = (BitmapDrawable) Drawable.createFromPath(path);
Bitmap bit2 = Bitmap.createScaledBitmap(bit1.getBitmap(), 640, 360, true);
BitmapDrawable bit3 = new BitmapDrawable(getResources(),bit2);
return bit3;
}
그리고 미세 I 앱이 느린지고이 함수를 여러 시간을 호출 할 때, 유일한 문제가되는 작업, 어떤 방식이 그 이 기능을 최적화 하시겠습니까? 아마 매트릭스를 통해 크기를 줄일 수 있을까요? 또한 SD 카드에서 이미지를 읽으며 애니메이션의 Drawable로 뒷면이 필요하며이 기능을 통해이 기능을 사용할 수 있습니다.