Package magick
Class PixelPacket
- java.lang.Object
-
- magick.Magick
-
- magick.PixelPacket
-
public class PixelPacket extends Magick
-
-
Constructor Summary
Constructors Constructor Description PixelPacket(int red, int green, int blue, int opacity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBlue()
int
getGreen()
int
getOpacity()
int
getRed()
static PixelPacket
queryColorDatabase(java.lang.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)
java.lang.String
toString()
Display the object as a String-
Methods inherited from class magick.Magick
parseImageGeometry
-
-
-
-
Method Detail
-
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
public static PixelPacket queryColorDatabase(java.lang.String target) throws MagickException
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
public java.lang.String toString()
Display the object as a String- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-