Package samer.maths
Class MatrixImageSource
- java.lang.Object
-
- samer.tools.ImageSourceBase
-
- samer.maths.MatrixImageSource
-
public class MatrixImageSource extends ImageSourceBase
This matrix image source sends pixels a scan line at a time TODO: flip horizontally or vertically flip diagonally replaceable map (ie nonlinear map)
-
-
Constructor Summary
Constructors Constructor and Description MatrixImageSource(Matrix mat)
MatrixImageSource(Matrix mat, boolean fb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected int
getHints()
void
newMatrix(Matrix mat)
protected void
sendPixels(java.awt.image.ImageConsumer ic)
-
Methods inherited from class samer.tools.ImageSourceBase
addConsumer, getHeight, getMap, getWidth, isConsumer, removeConsumer, requestTopDownLeftRightResend, sendPixels, setColorModel, setMap, startProduction
-
-
-
-
Constructor Detail
-
MatrixImageSource
public MatrixImageSource(Matrix mat)
-
MatrixImageSource
public MatrixImageSource(Matrix mat, boolean fb)
-
-
Method Detail
-
newMatrix
public void newMatrix(Matrix mat)
-
getHints
protected int getHints()
- Specified by:
getHints
in classImageSourceBase
-
sendPixels
protected void sendPixels(java.awt.image.ImageConsumer ic)
- Specified by:
sendPixels
in classImageSourceBase
-
-