Click or drag to resize

RawDecoderGetBestScale Method

Gets the most efficient scale factor, based on the codec's internal data handling.

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

Parameters

stream
Type: System.IOStream
A stream containing the image data on which you would like to perform this operation on.
frameIndex
Type: SystemInt32
A zero based integer which determines which frame you would like to perform this operation on.
requestedScale
Type: SystemDouble
The scale factor you would like.

Return Value

Type: Double
The closest scale factor which is efficient to use.

Implements

IScaledDecoderGetBestScale(Stream, Int32, Double)
See Also