Package magick

Class PixelPacket


  • public class PixelPacket
    extends Magick
    • 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()