com.nerius.grafx.d2
Interface RasterFloatPixBuff


public interface RasterFloatPixBuff

This is a hook to do custom pixel computation with RasterFloatGraphics.

See Also:
RasterFloatGraphics

Method Summary
 void clearScanLine(int beginIndex, int length)
          The difference between this method and drawScanLine() is that this method is triggered by a call to RasterFloatGraphics.clear().
 void drawPixel(int index)
          This method is triggered by calls to RasterFloatGraphics.drawPoint() and RasterFloatGraphics.drawLine().
 void drawScanLine(int beginIndex, int length)
          This method is triggered by a call to RasterFloatGraphics.fillPolygon().
 int getHeight()
           
 int getWidth()
           
 void setColor(int color)
          0xaarrggbb.
 

Method Detail

getWidth

int getWidth()

getHeight

int getHeight()

setColor

void setColor(int color)
0xaarrggbb.


drawPixel

void drawPixel(int index)
This method is triggered by calls to RasterFloatGraphics.drawPoint() and RasterFloatGraphics.drawLine().

Orientation: index = (y * getWidth()) + x.


drawScanLine

void drawScanLine(int beginIndex,
                  int length)
This method is triggered by a call to RasterFloatGraphics.fillPolygon(). A scan line is a subsegment of a line of constant y. The length of a scan line will, of course, not exceed getWidth().

Orientation: index = (y * getWidth()) + x.


clearScanLine

void clearScanLine(int beginIndex,
                   int length)
The difference between this method and drawScanLine() is that this method is triggered by a call to RasterFloatGraphics.clear(). This method is required to clobber all previous pixel information.