Struct D2D1RadialGradientBrushProperties
Contains the gradient origin offset and the size and position of the gradient ellipse for an D2D1RadialGradientBrush.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1RadialGradientBrushProperties : IEquatable<D2D1RadialGradientBrushProperties>
Constructors
| Edit this page View SourceD2D1RadialGradientBrushProperties(D2D1Point2F, D2D1Point2F, float, float)
Initializes a new instance of the D2D1RadialGradientBrushProperties struct.
Declaration
public D2D1RadialGradientBrushProperties(D2D1Point2F center, D2D1Point2F gradientOriginOffset, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | center | The center of the gradient ellipse, in the brush's coordinate space. |
D2D1Point2F | gradientOriginOffset | The offset of the gradient origin relative to the gradient ellipse's center, in the brush's coordinate space. |
float | radiusX | The x-radius of the gradient ellipse, in the brush's coordinate space. |
float | radiusY | The y-radius of the gradient ellipse, in the brush's coordinate space. |
Properties
| Edit this page View SourceCenter
Gets or sets the center of the gradient ellipse, in the brush's coordinate space.
Declaration
public D2D1Point2F Center { get; set; }
Property Value
Type | Description |
---|---|
D2D1Point2F |
GradientOriginOffset
Gets or sets the offset of the gradient origin relative to the gradient ellipse's center, in the brush's coordinate space.
Declaration
public D2D1Point2F GradientOriginOffset { get; set; }
Property Value
Type | Description |
---|---|
D2D1Point2F |
RadiusX
Gets or sets the x-radius of the gradient ellipse, in the brush's coordinate space.
Declaration
public float RadiusX { get; set; }
Property Value
Type | Description |
---|---|
float |
RadiusY
Gets or sets the y-radius of the gradient ellipse, in the brush's coordinate space.
Declaration
public float RadiusY { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(D2D1RadialGradientBrushProperties)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1RadialGradientBrushProperties other)
Parameters
Type | Name | Description |
---|---|---|
D2D1RadialGradientBrushProperties | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D2D1RadialGradientBrushProperties, D2D1RadialGradientBrushProperties)
Compares two D2D1RadialGradientBrushProperties objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1RadialGradientBrushProperties left, D2D1RadialGradientBrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RadialGradientBrushProperties | left | The left D2D1RadialGradientBrushProperties to compare. |
D2D1RadialGradientBrushProperties | right | The right D2D1RadialGradientBrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1RadialGradientBrushProperties, D2D1RadialGradientBrushProperties)
Compares two D2D1RadialGradientBrushProperties objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1RadialGradientBrushProperties left, D2D1RadialGradientBrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1RadialGradientBrushProperties | left | The left D2D1RadialGradientBrushProperties to compare. |
D2D1RadialGradientBrushProperties | right | The right D2D1RadialGradientBrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |