Struct D2D1DrawingStateDescription
Describes the drawing state of a render target.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1DrawingStateDescription : IEquatable<D2D1DrawingStateDescription>
Constructors
| Edit this page View SourceD2D1DrawingStateDescription(D2D1AntialiasMode, D2D1TextAntialiasMode)
Initializes a new instance of the D2D1DrawingStateDescription struct.
Declaration
public D2D1DrawingStateDescription(D2D1AntialiasMode antialiasMode, D2D1TextAntialiasMode textAntialiasMode)
Parameters
Type | Name | Description |
---|---|---|
D2D1AntialiasMode | antialiasMode | The antialiasing mode for subsequent nontext drawing operations. |
D2D1TextAntialiasMode | textAntialiasMode | The antialiasing mode for subsequent text and glyph drawing operations. |
D2D1DrawingStateDescription(D2D1AntialiasMode, D2D1TextAntialiasMode, ulong, ulong, D2D1Matrix3X2F)
Initializes a new instance of the D2D1DrawingStateDescription struct.
Declaration
public D2D1DrawingStateDescription(D2D1AntialiasMode antialiasMode, D2D1TextAntialiasMode textAntialiasMode, ulong tag1, ulong tag2, D2D1Matrix3X2F transform)
Parameters
Type | Name | Description |
---|---|---|
D2D1AntialiasMode | antialiasMode | The antialiasing mode for subsequent nontext drawing operations. |
D2D1TextAntialiasMode | textAntialiasMode | The antialiasing mode for subsequent text and glyph drawing operations. |
ulong | tag1 | The first label for subsequent drawing operations. |
ulong | tag2 | The second label for subsequent drawing operations. |
D2D1Matrix3X2F | transform | The transformation to apply to subsequent drawing operations. |
Properties
| Edit this page View SourceAntialiasMode
Gets or sets the antialiasing mode for subsequent nontext drawing operations.
Declaration
public D2D1AntialiasMode AntialiasMode { get; set; }
Property Value
Type | Description |
---|---|
D2D1AntialiasMode |
Default
Gets default description.
Declaration
public static D2D1DrawingStateDescription Default { get; }
Property Value
Type | Description |
---|---|
D2D1DrawingStateDescription |
Tag1
Gets or sets a label for subsequent drawing operations.
Declaration
public ulong Tag1 { get; set; }
Property Value
Type | Description |
---|---|
ulong |
Tag2
Gets or sets a label for subsequent drawing operations.
Declaration
public ulong Tag2 { get; set; }
Property Value
Type | Description |
---|---|
ulong |
TextAntialiasMode
Gets or sets the antialiasing mode for subsequent text and glyph drawing operations.
Declaration
public D2D1TextAntialiasMode TextAntialiasMode { get; set; }
Property Value
Type | Description |
---|---|
D2D1TextAntialiasMode |
Transform
Gets or sets the transformation to apply to subsequent drawing operations.
Declaration
public D2D1Matrix3X2F Transform { get; set; }
Property Value
Type | Description |
---|---|
D2D1Matrix3X2F |
Methods
| Edit this page View SourceEquals(D2D1DrawingStateDescription)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1DrawingStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
D2D1DrawingStateDescription | 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 ==(D2D1DrawingStateDescription, D2D1DrawingStateDescription)
Compares two D2D1DrawingStateDescription objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1DrawingStateDescription left, D2D1DrawingStateDescription right)
Parameters
Type | Name | Description |
---|---|---|
D2D1DrawingStateDescription | left | The left D2D1DrawingStateDescription to compare. |
D2D1DrawingStateDescription | right | The right D2D1DrawingStateDescription to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1DrawingStateDescription, D2D1DrawingStateDescription)
Compares two D2D1DrawingStateDescription objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1DrawingStateDescription left, D2D1DrawingStateDescription right)
Parameters
Type | Name | Description |
---|---|---|
D2D1DrawingStateDescription | left | The left D2D1DrawingStateDescription to compare. |
D2D1DrawingStateDescription | right | The right D2D1DrawingStateDescription to compare. |
Returns
Type | Description |
---|---|
bool |