magick

Class 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(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)
String
toString()
Display the object as a String

Methods inherited from class magick.Magick

parseImageGeometry

Constructor Details

PixelPacket

public PixelPacket(int red,
                   int green,
                   int blue,
                   int opacity)

Method Details

getBlue

public int getBlue()

getGreen

public int getGreen()

getOpacity

public int getOpacity()

getRed

public int getRed()

queryColorDatabase

public static PixelPacket queryColorDatabase(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

setBlue

public void setBlue(int blue)

setGreen

public void setGreen(int green)

setOpacity

public void setOpacity(int opacity)

setRed

public void setRed(int red)

toString

public String toString()
Display the object as a String
See Also:
java.lang.Object.toString()