특별한딸기이야기

이미지 표시 임시 저장 본문

딸기 공부방/안드로이드

이미지 표시 임시 저장

특별한녀석 2008. 5. 1. 20:31
//1차 수정
       w = (int)(canvas.getBitmapWidth() * (1 - level) / 2);
       h = (int)(canvas.getBitmapHeight() * (1 - level) / 2);
       image.getIntrinsicWidth()
       image.getIntrinsicHeight()
       canvas.rotate((float)(90 * rotate), canvas.getBitmapWidth() / 2, canvas.getBitmapHeight() / 2);
       //image.setBounds(w, h, getWidth() - w, getHeight() - h);
       image.setBounds(w, h, canvas.getBitmapWidth() - w, canvas.getBitmapHeight() - h);
       image.draw(canvas);

// 2차수정
       w = (int)(image.getIntrinsicWidth() * (1 - level) / 2);
       h = (int)(image.getIntrinsicHeight() * (1 - level) / 2);
       canvas.rotate((float)(90 * rotate), image.getIntrinsicWidth() / 2, image.getIntrinsicHeight() / 2);
       image.setBounds(w, h, image.getIntrinsicWidth() - w, image.getIntrinsicHeight() - h);
       image.draw(canvas);

'딸기 공부방 > 안드로이드' 카테고리의 다른 글

스크린 터치 이벤트  (0) 2008.05.03
바인딩  (0) 2008.05.03
안드로이드 어플리케이션 삭제  (2) 2008.04.07
안드로이드 교육용 문서  (0) 2008.04.01
2008년 캡스톤 프로젝트 제안서 초안  (0) 2008.03.07