꿈꾸는 개발자

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

bitmap 1

[Android]Bitmap 파일을 비율에 맞게 늘리거나 줄이기

public static int[] getScaleSizeByWidth(final Context ctx,final Bitmap bitmap,final int wid){ Bitmap bm = bitmap; if(bm!=null){ int viewWeight = wid;float width = bm.getWidth();float height = bm.getHeight(); float percente = (float)(width / 100); float scale = (float)(viewWeight / percente); width *= (scale / 100); height *= (scale / 100); //bm.recycle(); int[] i = new int[2];i[0] = (int)width;i..

android 2015.09.03
이전
1
다음
더보기
프로필사진

꿈꾸는 개발자

  • 분류 전체보기 (45)
    • android (39)
    • jQuery & script (3)
    • MS-SQL (1)
    • asp .net (0)
    • 포트폴리오 (0)
    • 여행 (0)

Tag

google cloud print, 화면크기 구하기, Java, 기본쿼리, HttpUtrlConnection, Android, resourceId, android backkey, 안드로이드 이미지, android Bitmap, jsInterface, 안드로이드 스크립트, 안드로이드, Script통신, android Script, EditText 굴자 제한, JSON, thread, android image, Timer example,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바