org.jscience.io.fits
Interface RealImageConsumer

All Known Implementing Classes:
ImageDigitizer

public interface RealImageConsumer

This is the similar to an ImageConsumer, except that it handles double valued pixels. This whole paradigm for handling images may get scrapped.


Method Summary
 void imageComplete(int status)
          called by the image producer when it is done sending pixels.
 void setDimensions(int width, int height)
          called by the image producer to indicate the dimensions of the image.
 void setHints(int hintflags)
          Called by the image producer to indicate hints about how the pixels will be delivered.
 void setMinMax(double min, double max)
          Called by the producer to indicate the pixel value limits.
 void setPixels(int x, int y, int w, int h, double[] pixels, int offset, int scansize)
          the image producer calls this method to deliver a batch of pixels
 

Method Detail

imageComplete

void imageComplete(int status)
called by the image producer when it is done sending pixels.

Parameters:
status - DOCUMENT ME!

setDimensions

void setDimensions(int width,
                   int height)
called by the image producer to indicate the dimensions of the image.

Parameters:
width - DOCUMENT ME!
height - DOCUMENT ME!

setMinMax

void setMinMax(double min,
               double max)
Called by the producer to indicate the pixel value limits.

Parameters:
min - DOCUMENT ME!
max - DOCUMENT ME!

setHints

void setHints(int hintflags)
Called by the image producer to indicate hints about how the pixels will be delivered. The hint flags are the same as for an ImageConsumer.

Parameters:
hintflags - DOCUMENT ME!

setPixels

void setPixels(int x,
               int y,
               int w,
               int h,
               double[] pixels,
               int offset,
               int scansize)
the image producer calls this method to deliver a batch of pixels

Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
w - DOCUMENT ME!
h - DOCUMENT ME!
pixels - DOCUMENT ME!
offset - DOCUMENT ME!
scansize - DOCUMENT ME!