magick
Class PixelPacket

java.lang.Object
  extended by magick.Magick
      extended by magick.PixelPacket

public class PixelPacket
extends Magick


Constructor Summary
PixelPacket(int red, int green, int blue, int opacity)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PixelPacket

public PixelPacket(int red,
                   int green,
                   int blue,
                   int opacity)
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 class java.lang.Object
See Also:
Object.toString()