Struct D2D1BrushProperties
Describes the opacity and transformation of a brush.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1BrushProperties : IEquatable<D2D1BrushProperties>
Constructors
| Edit this page View SourceD2D1BrushProperties(float)
Initializes a new instance of the D2D1BrushProperties struct.
Declaration
public D2D1BrushProperties(float opacity)
Parameters
Type | Name | Description |
---|---|---|
float | opacity | A value between 0.0f and 1.0f, inclusive, that specifies the degree of opacity of the brush. |
D2D1BrushProperties(float, D2D1Matrix3X2F)
Initializes a new instance of the D2D1BrushProperties struct.
Declaration
public D2D1BrushProperties(float opacity, D2D1Matrix3X2F transform)
Parameters
Type | Name | Description |
---|---|---|
float | opacity | A value between 0.0f and 1.0f, inclusive, that specifies the degree of opacity of the brush. |
D2D1Matrix3X2F | transform | The transformation that is applied to the brush. |
Properties
| Edit this page View SourceDefault
Gets default properties (1.0f, Identity).
Declaration
public static D2D1BrushProperties Default { get; }
Property Value
Type | Description |
---|---|
D2D1BrushProperties |
Opacity
Gets or sets a value between 0.0f and 1.0f, inclusive, that specifies the degree of opacity of the brush.
Declaration
public float Opacity { get; set; }
Property Value
Type | Description |
---|---|
float |
Transform
Gets or sets the transformation that is applied to the brush.
Declaration
public D2D1Matrix3X2F Transform { get; set; }
Property Value
Type | Description |
---|---|
D2D1Matrix3X2F |
Methods
| Edit this page View SourceEquals(D2D1BrushProperties)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1BrushProperties other)
Parameters
Type | Name | Description |
---|---|---|
D2D1BrushProperties | 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 ==(D2D1BrushProperties, D2D1BrushProperties)
Compares two D2D1BrushProperties objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1BrushProperties left, D2D1BrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1BrushProperties | left | The left D2D1BrushProperties to compare. |
D2D1BrushProperties | right | The right D2D1BrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1BrushProperties, D2D1BrushProperties)
Compares two D2D1BrushProperties objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1BrushProperties left, D2D1BrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1BrushProperties | left | The left D2D1BrushProperties to compare. |
D2D1BrushProperties | right | The right D2D1BrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |