public ReadScanline ( byte buffer, int row ) : bool | ||
buffer | byte | The buffer to place read and decoded image data to. |
row | int | The zero-based index of scanline (row) to read. |
return | bool |
ReadScanline reads the data for the specified row into the user supplied data buffer buffer. The data are returned decompressed and, in the native byte- and bit-ordering, but are otherwise packed (see further below). The buffer must be large enough to hold an entire scanline of data. Applications should call the ScanlineSize to find out the size (in bytes) of a scanline buffer. Applications should use ReadScanline(byte[], int, short) or ReadScanline(byte[], int, int, short) and specify correct sample plane if image data are organized in separate planes (TiffTag.PLANARCONFIG = PlanarConfig.SEPARATE).
The library attempts to hide bit- and byte-ordering differences between the image and the native machine by converting data to the native machine order. Bit reversal is done if the value of TiffTag.FILLORDER tag is opposite to the native machine bit order. 16- and 32-bit samples are automatically byte-swapped if the file was written with a byte order opposite to the native machine byte order.
public ReadScanline ( byte buffer, int row ) : bool | ||
buffer | byte | The buffer to place read and decoded image data to. |
row | int | The zero-based index of scanline (row) to read. |
return | bool |