|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRaster
Provides access to members that control an in-memory raster.
The IRaster interface controls the reading of pixels from a Raster object.
The IRaster interface provides the ability to read data from a raster. This interface controls the resampling technique used when pixels are read from the Raster through the ResampleMethod property.
The CreatePixelBlock method creates a PixelBlock that can be used to read pixels from the Raster. The input Size specifies the number of rows and columns in the PixelBlock and is specified with the Pnt object.
The Read method transfers data into a PixelBlock after it is created. Once the data is read into the PixelBlock, it can be accessed through the methods on that object. The read can be initiated from any pixel in the raster, and the top-left corner of the area being read is specified as a Pnt using the tlc argument.
The CreateCursor method creates a RasterCursor that can be used to successively read the set of PixelBlocks that make up the Raster.
It is recommended to pass an integer type for the X and Y arguments when defining Pnt object for either the demension or the pixel location of the pixel block.
The IRaster interface controls the reading of pixels from a Raster object.
MosaicRaster
Method Summary | |
---|---|
IRasterCursor |
createCursor()
Allocates a Raster Cursor for fast raster scanning. |
IPixelBlock |
createPixelBlock(IPnt size)
Allocates a PixelBlock of requested size. |
int |
getResampleMethod()
Interpolation method used when reading pixels. |
void |
read(IPnt tlc,
IPixelBlock block)
Read a block of pixels starting from the top left corner. |
void |
setResampleMethod(int val)
Interpolation method used when reading pixels. |
Method Detail |
---|
void read(IPnt tlc, IPixelBlock block) throws IOException, AutomationException
tlc
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)block
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPixelBlock createPixelBlock(IPnt size) throws IOException, AutomationException
CreatePixelBlock method only initializes the properties of a pixel block, such as dimension, pixel type etc. Read method of this interface should be used to read pixels into the pixel block.
size
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRasterCursor createCursor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getResampleMethod() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setResampleMethod(int val) throws IOException, AutomationException
val
- A com.esri.arcgis.geodatabase.rstResamplingTypes constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |