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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public AtalaImage ReadScaledImage(
Stream stream,
int frameIndex,
double zoom
)
Public Function ReadScaledImage (
stream As Stream,
frameIndex As Integer,
zoom As Double
) As AtalaImage
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:
AtalaImageAn 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