화면 캡쳐를 하고 있는데 폰 해상도로 하다보니까 이게 실제로 파일로 보면 굉장히 크더라구요
879 x 3519 정도 사이즈로 캡쳐가 되는데요
int width_container = container.getWidth() ;//캡쳐할 레이아웃 크기
int height_container = container.getHeight() ;//캡쳐할 레이아웃 크기
container.setDrawingCacheEnabled(true);
container.buildDrawingCache(true);
Bitmap captureView = Bitmap.createBitmap(width_container,
height_container, Bitmap.Config.ARGB_8888);
Canvas screenShotCanvas = new Canvas(captureView);
container.draw(screenShotCanvas);
container.setDrawingCacheEnabled(false);
이렇게 지금 캡쳐하고 있습니다
그런데 사이즈르 줄이려고 했는데
int width_container = container.getWidth() ;//캡쳐할 레이아웃 크기
int height_container = container.getHeight() ;//캡쳐할 레이아웃 크기
이 부분을 width_container /2 이런식으로 반 줄여줬떠니 그냥 사진을 아예 반으로 잘라버리더라구요.
그렇다면 이미지를 캡쳐하고 그 다음에 이미지 전체를 사이즈를 줄여주고 싶은데 어떻게 해줘야 하나요?
줄이는 사이즈는 제가 직접 사이즈를 정해서 고정적으로 줄이려고 합니다.
어느 폰에서나 상관없이요.