Package magick
Class PixelPacket
java.lang.Object
magick.Magick
magick.PixelPacket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBlue()
int
getGreen()
int
int
getRed()
static PixelPacket
queryColorDatabase
(String target) looks up a RGB values for a color given in the target string.void
setBlue
(int blue) void
setGreen
(int green) void
setOpacity
(int opacity) void
setRed
(int red) toString()
Display the object as a StringMethods inherited from class magick.Magick
parseImageGeometry
-
Constructor Details
-
PixelPacket
public PixelPacket(int red, int green, int blue, int opacity)
-
-
Method Details
-
setRed
public void setRed(int red) -
setGreen
public void setGreen(int green) -
setBlue
public void setBlue(int blue) -
setOpacity
public void setOpacity(int opacity) -
getRed
public int getRed() -
getGreen
public int getGreen() -
getBlue
public int getBlue() -
getOpacity
public int getOpacity() -
queryColorDatabase
looks up a RGB values for a color given in the target string.- Parameters:
target
- Specifies the color to lookup in the X color database- Returns:
- a PixelPacket that represents the target
- Throws:
MagickException
-
toString
Display the object as a String
-