Struct D2D1BitmapBrushProperties
Describes the extend modes and the interpolation mode of an D2D1BitmapBrush.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1BitmapBrushProperties : IEquatable<D2D1BitmapBrushProperties>
Constructors
| Edit this page View SourceD2D1BitmapBrushProperties(D2D1ExtendMode, D2D1ExtendMode, D2D1BitmapInterpolationMode)
Initializes a new instance of the D2D1BitmapBrushProperties struct.
Declaration
public D2D1BitmapBrushProperties(D2D1ExtendMode extendModeX, D2D1ExtendMode extendModeY, D2D1BitmapInterpolationMode interpolationMode)
Parameters
Type | Name | Description |
---|---|---|
D2D1ExtendMode | extendModeX | A value that describes how the brush horizontally tiles those areas that extend past its bitmap. |
D2D1ExtendMode | extendModeY | A value that describes how the brush vertically tiles those areas that extend past its bitmap. |
D2D1BitmapInterpolationMode | interpolationMode | A value that specifies how the bitmap is interpolated when it is scaled or rotated. |
Properties
| Edit this page View SourceDefault
Gets default properties (Clamp, Clamp, Linear).
Declaration
public static D2D1BitmapBrushProperties Default { get; }
Property Value
Type | Description |
---|---|
D2D1BitmapBrushProperties |
ExtendModeX
Gets or sets a value that describes how the brush horizontally tiles those areas that extend past its bitmap.
Declaration
public D2D1ExtendMode ExtendModeX { get; set; }
Property Value
Type | Description |
---|---|
D2D1ExtendMode |
ExtendModeY
Gets or sets a value that describes how the brush vertically tiles those areas that extend past its bitmap.
Declaration
public D2D1ExtendMode ExtendModeY { get; set; }
Property Value
Type | Description |
---|---|
D2D1ExtendMode |
InterpolationMode
Gets or sets a value that specifies how the bitmap is interpolated when it is scaled or rotated.
Declaration
public D2D1BitmapInterpolationMode InterpolationMode { get; set; }
Property Value
Type | Description |
---|---|
D2D1BitmapInterpolationMode |
Methods
| Edit this page View SourceEquals(D2D1BitmapBrushProperties)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1BitmapBrushProperties other)
Parameters
Type | Name | Description |
---|---|---|
D2D1BitmapBrushProperties | 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 ==(D2D1BitmapBrushProperties, D2D1BitmapBrushProperties)
Compares two D2D1BitmapBrushProperties objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1BitmapBrushProperties left, D2D1BitmapBrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1BitmapBrushProperties | left | The left D2D1BitmapBrushProperties to compare. |
D2D1BitmapBrushProperties | right | The right D2D1BitmapBrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1BitmapBrushProperties, D2D1BitmapBrushProperties)
Compares two D2D1BitmapBrushProperties objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1BitmapBrushProperties left, D2D1BitmapBrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1BitmapBrushProperties | left | The left D2D1BitmapBrushProperties to compare. |
D2D1BitmapBrushProperties | right | The right D2D1BitmapBrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |