WebDocumentRequestHandler.ReadScaledImage 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)
Syntaxpublic 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.IO.Stream
A seekable stream that contains one or more images. - frameIndex
- Type: System.Int32
Frame index of the desired image. - zoom
- Type: System.Double
Zoom level to scale the image to.
Return Value
Type:
AtalaImageAn AtalaImage scaled to the given zoom level.
RemarksWhen 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