Class BufferedImageFactory.Consumer

java.lang.Object
com.twelvemonkeys.image.BufferedImageFactory.Consumer
All Implemented Interfaces:
ImageConsumer
Enclosing class:
BufferedImageFactory

private class BufferedImageFactory.Consumer extends Object implements ImageConsumer
  • Constructor Details

    • Consumer

      private Consumer()
  • Method Details

    • setPixelsImpl

      private void setPixelsImpl(int pX, int pY, int pWidth, int pHeight, ColorModel pModel, Object pPixels, int pOffset, int pScanSize)
      Implementation of all setPixels methods. Note that this implementation assumes that all invocations for one image uses the same color model, and that the pixel data has the same type.
      Parameters:
      pX - x coordinate of pixel data region
      pY - y coordinate of pixel data region
      pWidth - width of pixel data region
      pHeight - height of pixel data region
      pModel - the color model of the pixel data
      pPixels - the pixel data array
      pOffset - the offset into the pixel data array
      pScanSize - the scan size of the pixel data array
    • setPixels

      public void setPixels(int x, int y, int width, int height, ColorModel colorModel, short[] pixels, int offset, int scanSize)
    • setColorModelOnce

      private void setColorModelOnce(ColorModel colorModel)
    • imageComplete

      public void imageComplete(int status)
      Specified by:
      imageComplete in interface ImageConsumer
    • setColorModel

      public void setColorModel(ColorModel colorModel)
      Specified by:
      setColorModel in interface ImageConsumer
    • setDimensions

      public void setDimensions(int w, int h)
      Specified by:
      setDimensions in interface ImageConsumer
    • setHints

      public void setHints(int hintFlags)
      Specified by:
      setHints in interface ImageConsumer
    • setPixels

      public void setPixels(int x, int y, int width, int height, ColorModel colorModel, byte[] pixels, int offset, int scanSize)
      Specified by:
      setPixels in interface ImageConsumer
    • setPixels

      public void setPixels(int x, int y, int width, int height, ColorModel colorModel, int[] pixels, int offset, int scanSize)
      Specified by:
      setPixels in interface ImageConsumer
    • setProperties

      public void setProperties(Hashtable properties)
      Specified by:
      setProperties in interface ImageConsumer