public final class MapPalette
extends java.lang.Object
These fields are hee base color ranges. Each entry corresponds to four colors of varying shades with values entry to entry + 3.
限定符和类型 | 字段和说明 |
---|---|
static byte |
BLUE
已过时。
Magic value
|
static byte |
BROWN
已过时。
Magic value
|
static byte |
DARK_BROWN
已过时。
Magic value
|
static byte |
DARK_GRAY
已过时。
Magic value
|
static byte |
DARK_GREEN
已过时。
Magic value
|
static byte |
GRAY_1
已过时。
Magic value
|
static byte |
GRAY_2
已过时。
Magic value
|
static byte |
LIGHT_BROWN
已过时。
Magic value
|
static byte |
LIGHT_GRAY
已过时。
Magic value
|
static byte |
LIGHT_GREEN
已过时。
Magic value
|
static byte |
PALE_BLUE
已过时。
Magic value
|
static byte |
RED
已过时。
Magic value
|
static byte |
TRANSPARENT
已过时。
Magic value
|
static byte |
WHITE
已过时。
Magic value
|
限定符和类型 | 方法和说明 |
---|---|
static java.awt.Color |
getColor(byte index)
已过时。
Magic value
|
static byte[] |
imageToBytes(java.awt.Image image)
已过时。
Magic value
|
static byte |
matchColor(java.awt.Color color)
已过时。
Magic value
|
static byte |
matchColor(int r,
int g,
int b)
已过时。
Magic value
|
static java.awt.image.BufferedImage |
resizeImage(java.awt.Image image)
Resize an image to 128x128.
|
@Deprecated public static final byte TRANSPARENT
@Deprecated public static final byte LIGHT_GREEN
@Deprecated public static final byte LIGHT_BROWN
@Deprecated public static final byte GRAY_1
@Deprecated public static final byte RED
@Deprecated public static final byte PALE_BLUE
@Deprecated public static final byte GRAY_2
@Deprecated public static final byte DARK_GREEN
@Deprecated public static final byte WHITE
@Deprecated public static final byte LIGHT_GRAY
@Deprecated public static final byte BROWN
@Deprecated public static final byte DARK_GRAY
@Deprecated public static final byte BLUE
@Deprecated public static final byte DARK_BROWN
public static java.awt.image.BufferedImage resizeImage(java.awt.Image image)
image
- The image to resize.@Deprecated public static byte[] imageToBytes(java.awt.Image image)
image
- The image to convert.@Deprecated public static byte matchColor(int r, int g, int b)
r
- The red component of the color.b
- The blue component of the color.g
- The green component of the color.@Deprecated public static byte matchColor(java.awt.Color color)
color
- The Color to match.@Deprecated public static java.awt.Color getColor(byte index)
index
- The index in the palette.