Class ImageIoImage


  • public class ImageIoImage
    extends AppleImage
    ImageIoImage is a specific implementation of AppleImage that handles all ImageIO related coding surrounding image manipulation. This is available in JDK 1.4 as well as an extra library for JDK 1.3.

    Date Created: Mar 25, 2003

    • Constructor Detail

      • ImageIoImage

        public ImageIoImage​(int width,
                            int height)
                     throws java.lang.ClassNotFoundException
        Create ImageIoImage. Verifies all (known) required classes are available as well as sets up the class.
        Throws:
        java.lang.ClassNotFoundException
    • Method Detail

      • setPoint

        public void setPoint​(int x,
                             int y,
                             int color)
        Set a color point.
        Specified by:
        setPoint in class AppleImage
      • getPoint

        public int getPoint​(int x,
                            int y)
        Get a color point.
        Specified by:
        getPoint in class AppleImage
      • save

        public void save​(java.io.OutputStream outputStream)
                  throws java.io.IOException
        Save the image.
        Specified by:
        save in class AppleImage
        Throws:
        java.io.IOException
      • getWidth

        public int getWidth()
        Return the width of the image.
        Specified by:
        getWidth in class AppleImage
      • getHeight

        public int getHeight()
        Return the height of the image.
        Specified by:
        getHeight in class AppleImage