public class Palette
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
Palette.Preset |
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
Palette() |
protected |
Palette(long cPtr,
boolean cMemoryOwn) |
|
Palette(Palette palette) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete() |
protected void |
finalize() |
Color |
getColor(long index) |
protected static long |
getCPtr(Palette obj) |
long |
getSize() |
float |
getValue(long index) |
void |
init(Palette.Preset preset) |
boolean |
load(java.lang.String path) |
void |
resize(long size) |
boolean |
save(java.lang.String path) |
void |
setColor(long index,
Color color) |
void |
setValue(long index,
float value) |
protected Palette(long cPtr, boolean cMemoryOwn)
public Palette()
public Palette(Palette palette)
protected static long getCPtr(Palette obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public void init(Palette.Preset preset)
public boolean load(java.lang.String path)
public boolean save(java.lang.String path)
public void resize(long size)
public long getSize()
public void setValue(long index, float value)
public float getValue(long index)
public void setColor(long index, Color color)
public Color getColor(long index)