Table of Contents

Struct PixelFormat

Namespace
SharpDX.Toolkit.Graphics
Assembly
HelixToolkit.SharpDX.dll

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

PixelFormat

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

int

Methods

Equals(PixelFormat)

public bool Equals(PixelFormat other)

Parameters

other PixelFormat

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(PixelFormat, PixelFormat)

public static bool operator ==(PixelFormat left, PixelFormat right)

Parameters

left PixelFormat
right PixelFormat

Returns

bool

implicit operator PixelFormat(Format)

public static implicit operator PixelFormat(Format from)

Parameters

from Format

Returns

PixelFormat

implicit operator Format(PixelFormat)

public static implicit operator Format(PixelFormat from)

Parameters

from PixelFormat

Returns

Format

operator !=(PixelFormat, PixelFormat)

public static bool operator !=(PixelFormat left, PixelFormat right)

Parameters

left PixelFormat
right PixelFormat

Returns

bool