MappingMode (RadialGradientBrush)


Gets or sets value that specifies whether the RadialGradientBrush positioning coordinates are absolute or relative to the output area.

<object MappingMode="BrushMappingMode"  .../>
value = object.MappingMode
object.MappingMode = value

Type: BrushMappingMode

A value of the enumeration that specifies how the RadialGradientBrush positioning coordinates are interpreted.

This property is read/write. The default value is RelativeToBoundingBox.

A value of Absolute indicates that the RadialGradientBrush coordinates are expressed in pixels.

The MappingMode of a LinearGradientBrush or RadialGradientBrush does not influence how the Offset values are interpreted. Regardless of mapping mode, the offset is always interpreted as a factor between 0 and 1 along the vector that defines the gradient.

Community Additions