Bitmap大小改变

来源:互联网 发布:手机文字读音软件 编辑:程序博客网 时间:2024/06/08 17:09
sounds = Bitmap.createScaledBitmap(sounds,width/2,width/10,true);
public Bitmap getBitmap(int BitmapId){    Bitmap bitmap = BitmapFactory.decodeResource(getResources(),BitmapId);    return bitmap;}

sw = ((float) scrWidth) / backBitmap.getWidth();sh = ((float) scrHeight) / backBitmap.getHeight();

 
原创粉丝点击