Package com.esri.core.geometry
Class RasterizedGeometry2DImpl.ScanCallbackImpl
java.lang.Object
com.esri.core.geometry.RasterizedGeometry2DImpl.ScanCallbackImpl
- All Implemented Interfaces:
SimpleRasterizer.ScanCallback
- Enclosing class:
RasterizedGeometry2DImpl
class RasterizedGeometry2DImpl.ScanCallbackImpl
extends Object
implements SimpleRasterizer.ScanCallback
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int[]
(package private) int
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawScan
(int[] scans, int scanCount3) Rasterizer calls this method for each scan it producedlong
Returns an estimate of this object size in bytes.void
setColor
(SimpleRasterizer rasterizer, int color)
-
Field Details
-
m_bitmap
int[] m_bitmap -
m_scanlineWidth
int m_scanlineWidth -
m_color
int m_color
-
-
Constructor Details
-
ScanCallbackImpl
public ScanCallbackImpl(int[] bitmap, int scanlineWidth)
-
-
Method Details
-
setColor
-
drawScan
public void drawScan(int[] scans, int scanCount3) Description copied from interface:SimpleRasterizer.ScanCallback
Rasterizer calls this method for each scan it produced- Specified by:
drawScan
in interfaceSimpleRasterizer.ScanCallback
- Parameters:
scans
- array of scans. Scans are triplets of numbers. The start X coordinate for the scan (inclusive), the end X coordinate of the scan (exclusive), the Y coordinate for the scan.scanCount3
- The number of initialized elements in the scans array. The scan count is scanCount3 / 3.
-
estimateMemorySize
public long estimateMemorySize()Returns an estimate of this object size in bytes.- Returns:
- Returns an estimate of this object size in bytes.
-