Code example for Bitmap

Methods: createBitmapgetHeightgetWidth

0
		} 
		return btp;
	} 
 
    public Bitmap zoomBitmap(Bitmap bitmap, float scaleWidth, float scaleHeight) {
        int width = bitmap.getWidth();
        int height = bitmap.getHeight();
        Matrix matrix = new Matrix();
        matrix.postScale(scaleWidth, scaleHeight);
        Bitmap newBmp = Bitmap.createBitmap(bitmap, 0, 0, width, height,
                matrix, true);
        return newBmp;
    } 
	 
//	public InputStream DrawableID(String id,boolean focus){ 
//		if(focus  ==  true) 
//    		return getBitmap(id+"sel"); 
//    	else 
//    		return getBitmap(id+"unsel"); 
//	}