[]
ID2D1RadialGradientBrush
[Guid("2cd906ac-12e2-11dc-9fed-001143a055f9")]
public class RadialGradientBrush : Brush, IDisposable, IUnknown
Initializes a new instance of the RadialGradientBrush class.
public RadialGradientBrush(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public static RadialGradientBrush Create(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties brushProperties, GradientStopCollection gradientStopCollection)
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.
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public static RadialGradientBrush Create(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)
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.
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
[CLSCompliant(false)]
public static RadialGradientBrush Create(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)
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.
Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public static RadialGradientBrush Create(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties? brushProperties, GradientStopCollection gradientStopCollection)
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.
D2D_POINT_2F ID2D1RadialGradientBrush::GetCenter()
public Point2F GetCenter()
D2D_POINT_2F ID2D1RadialGradientBrush::GetGradientOriginOffset()
public Point2F GetGradientOriginOffset()
void ID2D1RadialGradientBrush::GetGradientStopCollection([Out] ID2D1GradientStopCollection** gradientStopCollection)
public GradientStopCollection GetGradientStopCollection()
float ID2D1RadialGradientBrush::GetRadiusX()
public float GetRadiusX()
float ID2D1RadialGradientBrush::GetRadiusY()
public float GetRadiusY()
void ID2D1RadialGradientBrush::SetCenter([In] D2D_POINT_2F center)
public void SetCenter(Point2F center)
center
Point2Fvoid ID2D1RadialGradientBrush::SetGradientOriginOffset([In] D2D_POINT_2F gradientOriginOffset)
public void SetGradientOriginOffset(Point2F gradientOriginOffset)
gradientOriginOffset
Point2Fvoid ID2D1RadialGradientBrush::SetRadiusX([In] float radiusX)
public void SetRadiusX(float radiusX)
radiusX
floatvoid ID2D1RadialGradientBrush::SetRadiusY([In] float radiusY)
public void SetRadiusY(float radiusY)
radiusY
floatPerforms an explicit conversion from System.IntPtr to RadialGradientBrush.
public static explicit operator RadialGradientBrush(IntPtr nativePointer)
nativePointer
System.IntPtr