Click or drag to resize

JpegDecoderGetBestScale Method

Gets the best scale given a requested scale factor. For a JPEG, this would result in either 1, 1/2, 1/4, 1/16, or 1/32

Namespace:  Atalasoft.Imaging.Codec
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public double GetBestScale(
	Stream stream,
	int frameIndex,
	double requestedScale
)

Parameters

stream
Type: System.IOStream
The encoded image stream
frameIndex
Type: SystemInt32
not used for JPEG's
requestedScale
Type: SystemDouble
The scale to request

Return Value

Type: Double

Implements

IScaledDecoderGetBestScale(Stream, Int32, Double)
See Also