Skip to content

ImageFilterBounds class

Maps an output rectangle back to the source rectangle a filter graph needs to produce it. Rasterizing only that rectangle keeps a filtered element’s source layer bounded by the viewport instead of the element’s full extent, which at high zoom is the difference between a viewport-sized surface and a multi-hundred-megabyte one.

public static class ImageFilterBounds
name description
static TryGetSourceRect(…) The source rectangle filter reads to produce output, in the same coordinate space as output. Returns null when the graph contains a node whose input requirement cannot be bounded, meaning the caller must rasterize its whole filter region.