마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

bitmap crop guide (소스 보고 조금 가이드 부탁드려요.)

0 추천
	/** 
	 * 
	 * 	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를 적용된 상태로 가져가고 싶은데 방법이 없을까요?

자르고 가져오는 형식도 사이트나 직접 설명 부탁드려요 ㅠㅜㅠ

익명사용자 님이 2015년 5월 17일 질문

1개의 답변

0 추천
임시로 저장을 하시고, 저장된 uri 를 넘기고 처리 후 삭제 하심이 어떨지요.
부르스리 (1,620 포인트) 님이 2015년 5월 18일 답변
...