Click or drag to resize

WebDocumentRequestHandlerReadScaledImage Method

Reads the given stream and attemps to use the codec's more efficient scaled reading (if available)

Namespace:  Atalasoft.Imaging.WebControls
Assembly:  Atalasoft.dotImage.WebControls (in Atalasoft.dotImage.WebControls.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public AtalaImage ReadScaledImage(
	Stream stream,
	int frameIndex,
	double zoom
)

Parameters

stream
Type: System.IOStream
A seekable stream that contains one or more images.
frameIndex
Type: SystemInt32
Frame index of the desired image.
zoom
Type: SystemDouble
Zoom level to scale the image to.

Return Value

Type: AtalaImage
An AtalaImage scaled to the given zoom level.
Remarks
When using this method inside the OnImageRequestedEvent, the ImageRequestedEventArgs.AutoScale property will need to be set to false, or the image will be scaled twice.
See Also