Interface RasterFloatPixBuff


  • public interface RasterFloatPixBuff
    This is a hook to do custom pixel computation with RasterFloatGraphics. In particular, pixels having translucency may be handled in a special way.
    See Also:
    RasterFloatGraphics
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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()
      Reports back the pixel height.
      int getWidth()
      Reports back the pixel width.
      void setColor​(int color)
      ARGB format: 0xaarrggbb.
    • Method Detail

      • getWidth

        int getWidth()
        Reports back the pixel width.
      • getHeight

        int getHeight()
        Reports back the pixel height.
      • setColor

        void setColor​(int color)
        ARGB format: 0xaarrggbb.
      • drawPixel

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

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

      • 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 for pixel (x,y).

      • 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.