Class ExtensionMethods
Extension Methods.
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public static class ExtensionMethods
Methods
GetSizeInBits(PixelFormat)
Get Format size in bits (8 bits = byte).
Declaration
public static uint GetSizeInBits(this PixelFormat format)
Parameters
Type | Name | Description |
---|---|---|
PixelFormat | format | Pixel format. |
Returns
Type | Description |
---|---|
uint | Size in bits. |
IsGammaColorSpaceFormat(PixelFormat)
Indicates if this format is in Gamma Color Scapce.
Declaration
public static bool IsGammaColorSpaceFormat(this PixelFormat format)
Parameters
Type | Name | Description |
---|---|---|
PixelFormat | format | Pixel format. |
Returns
Type | Description |
---|---|
bool | Is in gamma space. |