Code example for PixelFormat

Methods: getPixelFormatInfo

0
  /** 
   * @return Bits per pixel. 
   */ 
  @CalledByNative 
  public int getBitsPerPixel() { 
      PixelFormat info = new PixelFormat();
      PixelFormat.getPixelFormatInfo(getDisplay().getPixelFormat(), info);
      return info.bitsPerPixel;
  } 
 
  /** 
   * @return Bits per component. 
   */ 
  @CalledByNative 
  public int getBitsPerComponent() { 
      int format = getDisplay().getPixelFormat();
      switch (format) {
      case PixelFormat.RGBA_4444:
          return 4; 
 
Contextual code suggestions in your IDE  Get Codota for Java