org.virtualbox_6_0
Enum BitmapFormat

java.lang.Object
  extended by java.lang.Enum<BitmapFormat>
      extended by org.virtualbox_6_0.BitmapFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BitmapFormat>

public enum BitmapFormat
extends java.lang.Enum<BitmapFormat>

Format of a bitmap. Generic values for formats used by the source bitmap, the screen shot or image update APIs. Interface ID: {AFB2BF39-8B1E-4F9F-8948-D1B887F83EB0}


Enum Constant Summary
BGR
          Generic BGR format without alpha channel.
BGR0
          4 bytes per pixel: B, G, R, 0.
BGRA
          4 bytes per pixel: B, G, R, A.
JPEG
          JPEG image.
Opaque
          Unknown buffer format (the user may not assume any particular format of the buffer).
PNG
          PNG image.
RGBA
          4 bytes per pixel: R, G, B, A.
 
Method Summary
static BitmapFormat fromValue(long v)
           
static BitmapFormat fromValue(java.lang.String v)
           
 int value()
           
static BitmapFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BitmapFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Opaque

public static final BitmapFormat Opaque
Unknown buffer format (the user may not assume any particular format of the buffer).


BGR

public static final BitmapFormat BGR
Generic BGR format without alpha channel. Pixel layout depends on the number of bits per pixel:


BGR0

public static final BitmapFormat BGR0
4 bytes per pixel: B, G, R, 0.


BGRA

public static final BitmapFormat BGRA
4 bytes per pixel: B, G, R, A.


RGBA

public static final BitmapFormat RGBA
4 bytes per pixel: R, G, B, A.


PNG

public static final BitmapFormat PNG
PNG image.


JPEG

public static final BitmapFormat JPEG
JPEG image.

Method Detail

values

public static BitmapFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BitmapFormat c : BitmapFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BitmapFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public int value()

fromValue

public static BitmapFormat fromValue(long v)

fromValue

public static BitmapFormat fromValue(java.lang.String v)