Skip to content

IImageFilterExecutor.MaxInputScale property

Upper bound on the LogicalToPixel scale at which the executor wants the source layer rasterized. GPU executors return PositiveInfinity (render at full requested scale for crisp source). CPU executors should return 1.0 - running Gaussian blur on a 12× upscaled buffer is orders of magnitude slower than rendering the source at 1× and letting the backend’s hardware bilinear stretch the small filter result up to the final display rect during DrawImage. The visual difference is minor (blur output is low-frequency) and the perf win is large.

public double MaxInputScale { get; }