Struct D2D1PixelFormat
Contains the data format and alpha mode for a bitmap or render target.
Assembly: JeremyAnsel.DirectX.D2D1.dll
public struct D2D1PixelFormat : IEquatable<D2D1PixelFormat>
Constructors
|
Edit this page
View Source
Declaration
public D2D1PixelFormat(DxgiFormat format, D2D1AlphaMode alphaMode)
Parameters
| Type |
Name |
Description |
| DxgiFormat |
format |
A value that specifies the size and arrangement of channels in each pixel.
|
| D2D1AlphaMode |
alphaMode |
A value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unknown.
|
Properties
|
Edit this page
View Source
Gets or sets a value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unknown.
Declaration
public D2D1AlphaMode AlphaMode { get; set; }
Property Value
|
Edit this page
View Source
Gets default format (Unknown, Unknown).
Declaration
public static D2D1PixelFormat Default { get; }
Property Value
|
Edit this page
View Source
Gets or sets a value that specifies the size and arrangement of channels in each pixel.
Declaration
public DxgiFormat Format { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public readonly bool Equals(D2D1PixelFormat other)
Parameters
Returns
|
Edit this page
View Source
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
Declaration
public static D2D1PixelFormat NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
Declaration
public static void NativeReadFrom(nint buffer, Span<D2D1PixelFormat> objects)
Parameters
|
Edit this page
View Source
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
Declaration
public static void NativeWriteTo(nint buffer, in D2D1PixelFormat obj)
Parameters
|
Edit this page
View Source
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D2D1PixelFormat> objects)
Parameters
Operators
|
Edit this page
View Source
Declaration
public static bool operator ==(D2D1PixelFormat left, D2D1PixelFormat right)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static bool operator !=(D2D1PixelFormat left, D2D1PixelFormat right)
Parameters
Returns
Implements