UImage



package liburbi.main;

public enum UImageFormat {
  IMAGE_RGB(1),
  IMAGE_YCbCr(2),
  IMAGE_JPEG(3),
  IMAGE_PPM(4),
  IMAGE_UNKNOWN;
}

public class UImage {

  /// image size in byte
  public long getSize();

  /// image width
  public long getWidth();

  /// image height
  public long getHeight();

  /// IMAGE_RGB, IMAGE_YCbCr, IMAGE_JPEG...
  public UImageFormat getImageFormat();

  /// image data in an array of byte
  public byte[] getDataAsByte();
}