Skip to content

GradientBrushHelper.GetRepresentativeColor method

Returns a single representative color for the gradient by sampling at the midpoint (t=0.5). Used as a fallback on backends that do not support gradients natively.

public static Color GetRepresentativeColor(this GradientBrush brush)