public abstract class Palette extends Object
| Constructor and Description |
|---|
Palette() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addColor(byte red,
byte green,
byte blue)
Adds a color to the PCX's palette.
|
boolean |
addColor(int red,
int green,
int blue)
Adds a color to the PCX's palette.
|
boolean |
addColor(int red,
int green,
int blue,
int alpha) |
Color |
getColor(int index)
Returns the color of a color within the PCX's palette.
|
int |
getPaletteEntryCount() |
boolean |
makeTransparent(int index)
Makes a certain color in the palette transparent.
|
void |
setColor(int index,
Color color) |
String |
toString() |
public boolean addColor(byte red,
byte green,
byte blue)
red - - The red value of the new color (unsigned byte).green - - The green value of the new color (unsigned byte).blue - - The blue value of the new color (unsigned byte).public boolean addColor(int red,
int green,
int blue)
red - - The red value of the new color (unsigned byte).green - - The green value of the new color (unsigned byte).blue - - The blue value of the new color (unsigned byte).public boolean addColor(int red,
int green,
int blue,
int alpha)
public boolean makeTransparent(int index)
index - - The color that is to become transparent.public Color getColor(int index)
index - - The index within the palette (unsigned byte).public void setColor(int index,
Color color)
public int getPaletteEntryCount()
Copyright © 2020. All rights reserved.