src/jpm/dg/ImageRetrieveScreen.java
/**
	 * Decode the Bitmap currently in memory.
	 * @return True if and only if a secret image is found.
	 */
Decode the Bitmap currently in memory.
@return True if and only if a secret image is found.
Decode the Bitmap currently in memory . @return True if and only if a secret image is found .
private boolean decodeImage() {
		int[] pixels = null;
		byte[] b = null;
		int width = sourceBitmap.getWidth();
		int height = sourceBitmap.getHeight();
		try {
			pixels = new int[width * height];
			sourceBitmap.getPixels(pixels, 0, width, 0, 0, width, height);
			if (sourceBitmap != null) {
				sourceBitmap.recycle();
				sourceBitmap = null;
			}
			b = Util.convertArray(pixels);
			pixels = null;
			System.gc();
			retrievedBitmap = decodeImage(b);
			b = null;
			return (retrievedBitmap != null);
		} catch (Throwable e) {
			e.printStackTrace();
			pixels = null;
			b = null;
			return false;
		}
	}
private boolean decodeImage ( ) { int [ ] pixels = null ; byte [ ] b = null ; int width = sourceBitmap . getWidth ( ) ; int height = sourceBitmap . getHeight ( ) ; try { pixels = new int [ width * height ] ; sourceBitmap . getPixels ( pixels , 0 , width , 0 , 0 , width , height ) ; if ( sourceBitmap != null ) { sourceBitmap . recycle ( ) ; sourceBitmap = null ; } b = Util . convertArray ( pixels ) ; pixels = null ; System . gc ( ) ; retrievedBitmap = decodeImage ( b ) ; b = null ; return ( retrievedBitmap != null ) ; } catch ( Throwable e ) { e . printStackTrace ( ) ; pixels = null ; b = null ; return false ; } }
Decode the Bitmap currently in memory.
Decode the Bitmap currently in memory .