/**
*
* Galley 에서 작업 하는 것 기기 내에 있는 crop 사용
*
* @param picUri
*/
private void performCrop(Uri picUri) {
try {
Intent cropIntent = new Intent("com.android.camera.action.CROP");
// indicate image type and Uri
cropIntent.setDataAndType(picUri, "image/*");
// set crop properties
cropIntent.putExtra("crop", "true");
// indicate aspect of desired crop
cropIntent.putExtra("aspectX", 1);
cropIntent.putExtra("aspectY", 1);
// indicate output X and Y
cropIntent.putExtra("outputX", 256);
cropIntent.putExtra("outputY", 256);
// retrieve data on return
cropIntent.putExtra("return-data", true);
// start the activity - we handle returning in onActivityResult
startActivityForResult(cropIntent, PIC_CROP);
}
// respond to users whose devices do not support the crop action
catch (ActivityNotFoundException anfe) {
// display an error message
String errorMessage = "Whoops - your device doesn't support the crop action!";
Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);
toast.show();
}
}
위 소스는 image url 을 가지고 갤러리로 이미지를 가져가는 형식인데 bitmap 형식으로 가져가는 방법이 없을까요?
현재 비트맵을 회전된 상태로 가지고 있는데 회전된 이미지나 filter를 적용된 상태로 가져가고 싶은데 방법이 없을까요?
자르고 가져오는 형식도 사이트나 직접 설명 부탁드려요 ㅠㅜㅠ