magick
Class PixelPacket
java.lang.Object
magick.Magick
magick.PixelPacket
public class PixelPacket
- extends Magick
Constructor Summary |
PixelPacket(int red,
int green,
int blue,
int opacity)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PixelPacket
public PixelPacket(int red,
int green,
int blue,
int opacity)
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 class java.lang.Object
- See Also:
Object.toString()