Click or drag to resize

PdfDecoderReadRegion Method

Reads a rectangle region from the PDF. This uses memory proportional to the size of the region.

Namespace:  Atalasoft.Imaging.Codec.Pdf
Assembly:  Atalasoft.dotImage.PdfReader (in Atalasoft.dotImage.PdfReader.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public virtual AtalaImage ReadRegion(
	Stream stream,
	Rectangle region,
	int frameIndex,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
A stream positioned to the beginning of a PDF
region
Type: System.DrawingRectangle
A rectangle region to render.
frameIndex
Type: SystemInt32
The page number of the PDF to render starting from zero
progress
Type: Atalasoft.ImagingProgressEventHandler
A progress handler

Return Value

Type: AtalaImage
An image that is the size of the region passed in with only a portion of the PDF rendered to it.

Implements

IRegionReadableReadRegion(Stream, Rectangle, Int32, ProgressEventHandler)
See Also