Code example for Field

Methods: setAccessible, setInt

0
	} 
	 
	private void coerceDimensionsIntoBlob(Bitmap image, TiBlob blob) {
		try { 
			Field field = TiBlob.class.getDeclaredField("width");
			field.setAccessible(true);
		    field.setInt(blob, image.getWidth());
			field = TiBlob.class.getDeclaredField("height");
			field.setAccessible(true);
		    field.setInt(blob, image.getHeight());
		} catch (Exception e) {
			// ** cry ** 
		} 
	} 
 
	private TiBlob imageTransform(int type, TiBlob blob, KrollDict args)
	{ 
		TiDrawableReference ref = TiDrawableReference.fromBlob(getActivity(), blob);
		Bitmap image = imageTransform(type, ref.getBitmap(), args);
 
		if (image == null)