Code example for BitmapFactory.Options

Methods: decodeFile

0
			Canvas canvas = new Canvas(b);
			canvas.drawBitmap(bm,rectOr, rectDest,paint);
			 
			return b;
			 
		} catch (Exception e) {
			e.printStackTrace();
		} 
		 
		return null; 
    } 
	 
	public static int dip2px(Context cnt, int dip) {
		return(int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, cnt.getResources().getDisplayMetrics());
	} 
	 
	public static class FlushedInputStream extends FilterInputStream {
        public FlushedInputStream(InputStream inputStream) {
            super(inputStream);
        }