Package com.nerius.grafx.d2
Interface RasterFloatPixBuff
-
public interface RasterFloatPixBuff
This is a hook to do custom pixel computation withRasterFloatGraphics
. 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 anddrawScanLine()
is that this method is triggered by a call toRasterFloatGraphics.clear()
.void
drawPixel(int index)
This method is triggered by calls toRasterFloatGraphics.drawPoint()
andRasterFloatGraphics.drawLine()
.void
drawScanLine(int beginIndex, int length)
This method is triggered by a call toRasterFloatGraphics.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 toRasterFloatGraphics.drawPoint()
andRasterFloatGraphics.drawLine()
.Orientation:
for pixelindex = y * getWidth() + x
(x,y)
.
-
drawScanLine
void drawScanLine(int beginIndex, int length)
This method is triggered by a call toRasterFloatGraphics.fillPolygon()
. A scan line is a subsegment of a line of constanty
. The length of a scan line will, of course, not exceedgetWidth()
.Orientation:
for pixelindex = y * getWidth() + x
(x,y)
.
-
clearScanLine
void clearScanLine(int beginIndex, int length)
The difference between this method anddrawScanLine()
is that this method is triggered by a call toRasterFloatGraphics.clear()
. This method is required to clobber all previous pixel information.
-
-