public class PixelPacket extends Magick
| Constructor and Description |
|---|
PixelPacket(int red,
int green,
int blue,
int opacity)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBlue()
Get the blue channel value.
|
static PixelPacket |
getColor(java.lang.String target)
Converts a web (i.e.
|
int |
getGreen()
Get the green channel value.
|
int |
getOpacity()
Get the opacity/alpha channel value.
|
int |
getRed()
Get the red channel value.
|
static PixelPacket |
queryColorDatabase(java.lang.String target)
looks up a RGB values for a color given in the target string.
|
void |
setBlue(int blue)
Set the blue channel value.
|
void |
setGreen(int green)
Set the green channel value.
|
void |
setOpacity(int opacity)
Set the opacity/alpha channel value.
|
void |
setRed(int red)
Set the red channel value.
|
java.lang.String |
toString()
Display the object as a String
|
parseImageGeometry, queryFontspublic PixelPacket(int red,
int green,
int blue,
int opacity)
red - the red channel valuegreen - the green channel valueblue - the blue channel valueopacity - the opacity/alpha channel valuepublic void setRed(int red)
red - the new red channel valuepublic void setGreen(int green)
green - the new green channel valuepublic void setBlue(int blue)
blue - the new blue channel valuepublic void setOpacity(int opacity)
opacity - the new opacity/alpha channel valuepublic int getRed()
public int getGreen()
public int getBlue()
public int getOpacity()
public static PixelPacket queryColorDatabase(java.lang.String target) throws MagickException
target - Specifies the color to lookup in the X color databaseMagickException - on errorpublic static PixelPacket getColor(java.lang.String target) throws MagickException
target - Specifies the color string to convertMagickException - on errorpublic java.lang.String toString()
toString in class java.lang.Object