Class RadialGradientBrush
[Guid("2cd906ac-12e2-11dc-9fed-001143a055f9")]
public class RadialGradientBrush : Brush
- Inheritance
-
RadialGradientBrush
- Inherited Members
Constructors
RadialGradientBrush(RenderTarget, RadialGradientBrushProperties, BrushProperties, GradientStopCollection)
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public RadialGradientBrush(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties brushProperties, GradientStopCollection gradientStopCollection)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
radialGradientBrushProperties
RadialGradientBrushPropertiesThe center, gradient origin offset, and x-radius and y-radius of the brush's gradient.
brushProperties
BrushPropertiesThe transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation.
gradientStopCollection
GradientStopCollectionA collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient.
RadialGradientBrush(RenderTarget, RadialGradientBrushProperties, GradientStopCollection)
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public RadialGradientBrush(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
radialGradientBrushProperties
RadialGradientBrushPropertiesThe center, gradient origin offset, and x-radius and y-radius of the brush's gradient.
gradientStopCollection
GradientStopCollectionA collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient.
RadialGradientBrush(RenderTarget, ref RadialGradientBrushProperties, GradientStopCollection)
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public RadialGradientBrush(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
radialGradientBrushProperties
RadialGradientBrushPropertiesThe center, gradient origin offset, and x-radius and y-radius of the brush's gradient.
gradientStopCollection
GradientStopCollectionA collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient.
RadialGradientBrush(RenderTarget, ref RadialGradientBrushProperties, BrushProperties?, GradientStopCollection)
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public RadialGradientBrush(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties? brushProperties, GradientStopCollection gradientStopCollection)
Parameters
renderTarget
RenderTargetan instance of RenderTarget
radialGradientBrushProperties
RadialGradientBrushPropertiesThe center, gradient origin offset, and x-radius and y-radius of the brush's gradient.
brushProperties
BrushProperties?The transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation.
gradientStopCollection
GradientStopCollectionA collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient.
RadialGradientBrush(nint)
public RadialGradientBrush(nint nativePtr)
Parameters
nativePtr
nint
Properties
Center
Retrieves or sets the center of the gradient ellipse.
public RawVector2 Center { get; set; }
Property Value
- RawVector2
GradientOriginOffset
Retrieves or sets the offset of the gradient origin relative to the gradient ellipse's center.
public RawVector2 GradientOriginOffset { get; set; }
Property Value
- RawVector2
GradientStopCollection
Retrieves the GradientStopCollection associated with this radial gradient brush object.
public GradientStopCollection GradientStopCollection { get; }
Property Value
Remarks
GradientStopCollection contains an array of GradientStop structures and additional information, such as the extend mode and the color interpolation mode.
RadiusX
Retrieves or sets the x-radius of the gradient ellipse.
public float RadiusX { get; set; }
Property Value
RadiusY
Retrieves or sets the y-radius of the gradient ellipse.
public float RadiusY { get; set; }
Property Value
Operators
explicit operator RadialGradientBrush(nint)
public static explicit operator RadialGradientBrush(nint nativePtr)
Parameters
nativePtr
nint