BitMiracle.LibTiff.Classic.Tiff.WriteRawTile C# (CSharp) Method

WriteRawTile() public method

Writes a tile of raw data to an open TIFF file/stream.

WriteRawTile appends count bytes of raw data to the end of the specified tile. Note that the value of tile is a "raw tile number". That is, the caller must take into account whether or not the data are organized in separate planes (TiffTag.PLANARCONFIG = PlanarConfig.SEPARATE). ComputeTile automatically does this when converting an (x, y, z, plane) coordinate quadruple to a tile number.

There must be space for the data. The function clamps individual writes to a tile to the tile size, but does not (and can not) check that multiple writes to the same tile were performed.

A correct value for the TiffTag.IMAGELENGTH tag must be setup before writing; WriteRawTile does not support automatically growing the image on each write (as O:BitMiracle.LibTiff.Classic.Tiff.WriteScanline does).

public WriteRawTile ( int tile, byte buffer, int count ) : int
tile int The zero-based index of the tile to write.
buffer byte The buffer with raw image data to be written.
count int The maximum number of tile bytes to be read from /// .
return int
        public int WriteRawTile(int tile, byte[] buffer, int count)
        {
            return WriteRawTile(tile, buffer, 0, count);
        }

Same methods

Tiff::WriteRawTile ( int tile, byte buffer, int offset, int count ) : int
Tiff