Code example for Bitmap

Methods: getHeightgetWidthhasAlpha

0
						mybitmap = mybitmap.copy(Bitmap.Config.ARGB_8888,false);
						//Log.w(TAG,"BITMAP!!! bitmap is a " + mybitmap.getConfig()); 
					} 
				 
					// convert this to a char array for us to send to FreeWRL 
					imageWidth = mybitmap.getWidth();
					imageHeight = mybitmap.getHeight();
					hasAlpha = mybitmap.hasAlpha();
					int sz = 4 * imageWidth * imageHeight;
					ByteBuffer bb = ByteBuffer.allocate(sz);
					mybitmap.copyPixelsToBuffer(bb);
		 
					// convert the ByteBuffer to a byte[] array. 
					myBytes = bb.array();
					length = sz ;
				} 
			} catch (IOException e) {}
                } 
        }