Skip to content

GradientBrushHelper.ResolveGradientPoint method

Converts a gradient geometry point from its declared units into user-space coordinates. For ObjectBoundingBox, p is treated as a fraction of objectBounds; otherwise it is returned unchanged.

public static Point ResolveGradientPoint(Point p, GradientUnits units, Rect objectBounds)