PeachImage

PeachImage.DecoderOptions

DecoderOptions.TargetSize Property

The size the caller is going to resize to. When set, the decoder reduces by the largest of 1/2, 1/4 and 1/8 that still leaves an image at least this wide and this tall (so a 6000x4000 JPEG with a target of 600x420 decodes at 750x500, 1/8). Decoding then costs a fraction of a full decode and a final Resize(int, int, ResizeOptions) to the target finishes the job. When null (the default) ScaleDenominator applies. With ApplyOrientation set, the target is compared against the upright (displayed) size, otherwise against the stored size. See ScaleDenominator for which formats reduce natively and how it interacts with the limits.

public System.Nullable<(int Width,int Height)> TargetSize { get; init; }

Property Value

System.Nullable<<System.Int32,System.Int32>>