|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DisposeOp>
ch.reto_hoehener.japng.DisposeOp
public enum DisposeOp
Disposal Operation - Specifies how the output buffer should be changed at the end of the delay (before rendering the next frame).
(quoted from the APNG specification)
Enum Constant Summary | |
---|---|
BACKGROUND
The frame's region of the output buffer is to be cleared to fully transparent black before rendering the next frame. |
|
NONE
No disposal is done on this frame before rendering the next; the contents of the output buffer are left as is. |
|
PREVIOUS
The frame's region of the output buffer is to be reverted to the previous contents before rendering the next frame. |
Method Summary | |
---|---|
static DisposeOp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DisposeOp[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DisposeOp NONE
No disposal is done on this frame before rendering the next; the contents of the output buffer are left as is.
(quoted from the APNG specification)
This corresponds to "APNG_DISPOSE_OP_NONE" or an int value of 0.
public static final DisposeOp BACKGROUND
The frame's region of the output buffer is to be cleared to fully transparent black before rendering the next frame.
(quoted from the APNG specification)
This corresponds to "APNG_DISPOSE_OP_BACKGROUND" or an int value of 1.
public static final DisposeOp PREVIOUS
The frame's region of the output buffer is to be reverted to the previous contents before rendering the next frame.
If the first frame uses a dispose operation of PREVIOUS it should be treated as BACKGROUND (by the viewer).
(quoted from the APNG specification)
This corresponds to "APNG_DISPOSE_OP_PREVIOUS" or an int value of 2.
Method Detail |
---|
public static final DisposeOp[] values()
for(DisposeOp c : DisposeOp.values()) System.out.println(c);
public static DisposeOp valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |