Enum Class BitmapFormat

java.lang.Object
java.lang.Enum<BitmapFormat>
com.bitwig.extension.api.graphics.BitmapFormat
All Implemented Interfaces:
Serializable, Comparable<BitmapFormat>, Constable

public enum BitmapFormat extends Enum<BitmapFormat>
  • Enum Constant Details

    • ARGB32

      public static final BitmapFormat ARGB32
      Each pixel is a 32-bit quantity, with alpha in the upper 8 bits, then red, then green, then blue. The 32-bit quantities are stored native-endian. Pre-multiplied alpha is used. (That is, 50% transparent red is 0x80800000, not 0x80ff0000.)
    • RGB24_32

      public static final BitmapFormat RGB24_32
      Each pixel is a 32-bit quantity, with the upper 8 bits unused. Red, Green, and Blue are stored in the remaining 24 bits in that order.
  • Method Details

    • values

      public static BitmapFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BitmapFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • bytesPerPixel

      public int bytesPerPixel()