A helper class for working with pixel formats.
More...
|
static bool | ComputePitch (DXGI_FORMAT fmt, int width, int height, ref long rowPitch, ref long slicePitch, CPFlags flags) |
| Computes the pitch and slice pitch for a given Format, width, height, and optional flags.
|
|
static int | BitsPerPixel (DXGI_FORMAT fmt) |
| Gets the number of bits per pixel for a given Format.
|
|
A helper class for working with pixel formats.
◆ BitsPerPixel()
static int FormatHelper.BitsPerPixel |
( |
DXGI_FORMAT | fmt | ) |
|
|
static |
Gets the number of bits per pixel for a given Format.
- Parameters
-
fmt | The Format to get the bits per pixel for. |
- Returns
- The number of bits per pixel for the given format.
◆ ComputePitch()
static bool FormatHelper.ComputePitch |
( |
DXGI_FORMAT | fmt, |
|
|
int | width, |
|
|
int | height, |
|
|
ref long | rowPitch, |
|
|
ref long | slicePitch, |
|
|
CPFlags | flags ) |
|
static |
Computes the pitch and slice pitch for a given Format, width, height, and optional flags.
- Parameters
-
fmt | The Format to compute the pitch for. |
width | The width of the data. |
height | The height of the data. |
rowPitch | Output parameter to store the row pitch. |
slicePitch | Output parameter to store the slice pitch. |
flags | Optional flags to control the pitch computation. |
- Returns
true
if the pitch was computed successfully; false
if there was an issue.
The documentation for this class was generated from the following file: