code: public static final ByteBuffer getImageByteBuffer(Webcam webcam, String format) {
  		return ByteBuffer.wrap(getImageBytes(webcam, format));
  	}
docs: Capture image as BYteBuffer.
  
  @param webcam the webcam from which image should be obtained
  @param format the file format
  @return Byte buffer