monoGIS Class Reference

RasterBand. Method (RWFlag, Int32, Int32, Int32, Int32, Byte[], Int32, Int32)

Read or write a block of data from/to a RasterBand. The data type of the buffer is automatically converted to that of the image file if necessary, and resampling is performed as necessary to match the buffer dimensions to the requested rectangle. The buffer is passed in as an array of bytes.

public void (
   RWFlag flag,
   Int32 xOff,
   Int32 yOff,
   Int32 xSize,
   Int32 ySize,
   Byte[] buffer,
   Int32 bufXSize,
   Int32 bufYSize
);

Parameters

RWFlag
Set to RWFlag.Read to read from the file, or RWFlag.Write to write to the file.
Int32
The x coordinate of the top left corner of the rectangular region of the image to be read/written.
Int32
The y coordinate of the top left corner of the rectangular region of the image to be read/written.
Int32
The width of the rectangular region of the image to be read/written.
Int32
The height of the rectangular region of the image to be read/written.
Byte[]
An array of bytes actings as a buffer.
Int32
The width of the buffer in pixels.
Int32
The height of the buffer in pixels.

See Also

RasterBand Class | Gdal Namespace | RasterBand. Overload List