Struct D2D1BitmapProperties
Describes the pixel format and dpi of a bitmap.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1BitmapProperties : IEquatable<D2D1BitmapProperties>
Constructors
| Edit this page View SourceD2D1BitmapProperties(D2D1PixelFormat, float, float)
Initializes a new instance of the D2D1BitmapProperties struct.
Declaration
public D2D1BitmapProperties(D2D1PixelFormat pixelFormat, float dpiX, float dpiY)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1PixelFormat | pixelFormat | The bitmap's pixel format and alpha mode. |
| float | dpiX | The horizontal dpi of the bitmap. |
| float | dpiY | The vertical dpi of the bitmap. |
Properties
| Edit this page View SourceDefault
Gets default properties (Default, 96, 96).
Declaration
public static D2D1BitmapProperties Default { get; }
Property Value
| Type | Description |
|---|---|
| D2D1BitmapProperties |
DpiX
Gets or sets the horizontal dpi of the bitmap.
Declaration
public float DpiX { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
DpiY
Gets or sets the vertical dpi of the bitmap.
Declaration
public float DpiY { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PixelFormat
Gets or sets the bitmap's pixel format and alpha mode.
Declaration
public D2D1PixelFormat PixelFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| D2D1PixelFormat |
Methods
| Edit this page View SourceEquals(D2D1BitmapProperties)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1BitmapProperties other)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1BitmapProperties | 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 ==(D2D1BitmapProperties, D2D1BitmapProperties)
Compares two D2D1BitmapProperties objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1BitmapProperties left, D2D1BitmapProperties right)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1BitmapProperties | left | The left D2D1BitmapProperties to compare. |
| D2D1BitmapProperties | right | The right D2D1BitmapProperties to compare. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(D2D1BitmapProperties, D2D1BitmapProperties)
Compares two D2D1BitmapProperties objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1BitmapProperties left, D2D1BitmapProperties right)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1BitmapProperties | left | The left D2D1BitmapProperties to compare. |
| D2D1BitmapProperties | right | The right D2D1BitmapProperties to compare. |
Returns
| Type | Description |
|---|---|
| bool |