Struct PixelFormat
PixelFormat is equivalent to SharpDX.DXGI.Format.
public readonly struct PixelFormat : IEquatable<PixelFormat>
- Implements
- Inherited Members
- Extension Methods
Remarks
This structure is implicitly castable to and from SharpDX.DXGI.Format, you can use it inplace where SharpDX.DXGI.Format is required and vice-versa. Usage is slightly different from SharpDX.DXGI.Format, as you have to select the type of the pixel format first and then access the available pixel formats for this type. Example: PixelFormat.UNorm.R8.
Fields
Unknown
public static readonly PixelFormat Unknown
Field Value
Value
Gets the value as a SharpDX.DXGI.Format enum.
public readonly Format Value
Field Value
- Format
Properties
SizeInBytes
public int SizeInBytes { get; }
Property Value
Methods
Equals(PixelFormat)
public bool Equals(PixelFormat other)
Parameters
otherPixelFormat
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PixelFormat, PixelFormat)
public static bool operator ==(PixelFormat left, PixelFormat right)
Parameters
leftPixelFormatrightPixelFormat
Returns
implicit operator PixelFormat(Format)
public static implicit operator PixelFormat(Format from)
Parameters
fromFormat
Returns
implicit operator Format(PixelFormat)
public static implicit operator Format(PixelFormat from)
Parameters
fromPixelFormat
Returns
- Format
operator !=(PixelFormat, PixelFormat)
public static bool operator !=(PixelFormat left, PixelFormat right)
Parameters
leftPixelFormatrightPixelFormat