Documentation of 'org.neuroph.imgrec.image.ImageJ2SE' Java class
ImageJ2SE
org.neuroph.imgrec.image

Class ImageJ2SE

  • All Implemented Interfaces:
    Image


    public class ImageJ2SE
    extends java.lang.Object
    implements Image
    This class represents image on J2SE platform, and the Image interface is used to provide compatibility with Android platform. It is a wrapper around BufferedImage and implementation of Image interface.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ImageJ2SE(java.awt.image.BufferedImage bufferedImage) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Image crop(int x1, int y1, int x2, int y2) 
      java.awt.image.BufferedImage getBufferedImage() 
      int getHeight() 
      int getPixel(int x, int y) 
      int[] getPixels(int offset, int stride, int x, int y, int width, int height) 
      int getType() 
      int getWidth() 
      Image resize(int width, int height) 
      void setBufferedImage(java.awt.image.BufferedImage bufferedImage) 
      void setPixel(int x, int y, int color) 
      void setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageJ2SE

        public ImageJ2SE(java.awt.image.BufferedImage bufferedImage)
    • Method Detail

      • getBufferedImage

        public java.awt.image.BufferedImage getBufferedImage()
      • setBufferedImage

        public void setBufferedImage(java.awt.image.BufferedImage bufferedImage)
      • getPixel

        public int getPixel(int x,
                            int y)
        Specified by:
        getPixel in interface Image
      • setPixel

        public void setPixel(int x,
                             int y,
                             int color)
        Specified by:
        setPixel in interface Image
      • getPixels

        public int[] getPixels(int offset,
                               int stride,
                               int x,
                               int y,
                               int width,
                               int height)
        Specified by:
        getPixels in interface Image
      • setPixels

        public void setPixels(int[] pixels,
                              int offset,
                              int stride,
                              int x,
                              int y,
                              int width,
                              int height)
        Specified by:
        setPixels in interface Image
      • getWidth

        public int getWidth()
        Specified by:
        getWidth in interface Image
      • getHeight

        public int getHeight()
        Specified by:
        getHeight in interface Image
      • resize

        public Image resize(int width,
                            int height)
        Specified by:
        resize in interface Image
      • crop

        public Image crop(int x1,
                          int y1,
                          int x2,
                          int y2)
        Specified by:
        crop in interface Image
      • getType

        public int getType()
        Specified by:
        getType in interface Image

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.