Click or drag to resize

TiffDecoderReadStrip Method

Decodes a specified strip from a TIFF image stream that is encoded with strips.

Namespace:  Atalasoft.Imaging.Codec
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public AtalaImage ReadStrip(
	Stream stream,
	int stripIndex,
	int frameIndex,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
A Stream containing the encoded image data.
stripIndex
Type: SystemInt32
The zero based strip index to decode.
frameIndex
Type: SystemInt32
The zero based frame index to load from a multi-page Tiff file.
progress
Type: Atalasoft.ImagingProgressEventHandler
The progress delegate. Can be set to null (Nothing in Visual Basic).

Return Value

Type: AtalaImage

[Missing <returns> documentation for "M:Atalasoft.Imaging.Codec.TiffDecoder.ReadStrip(System.IO.Stream,System.Int32,System.Int32,Atalasoft.Imaging.ProgressEventHandler)"]

Exceptions
ExceptionCondition
Thrown when the strip index doesn't exist within the image.
Thrown if the image stream is not located at the beginning of a valid TIFF file.
Remarks

This method differs from ReadRegion(Stream, Rectangle, Int32, ProgressEventHandler) in that it doesn't check that the source image is stripped. For reading multiple strips at once, ReadRegion is more efficient. To determine the strip height, query the tag TIFFTAG_ROWSPERSTRIP (278). To determine if an image is stripped, make sure TIFFTAG_TILELENGTH (323) or TIFFTAG_TILEWIDTH (322) doesn't exist.

Note that the image data is not corrected for orientation even when CorrectOrientation is true.

See Also