#include <gfx_image_pixelformat.h>
PixelFormatsInterface is a static interface which provides general functions for pixel format management.
◆ MAXON_INTERFACE_NONVIRTUAL()
◆ FindOrCreatePixelFormat() [1/3]
Create of find a pixel format.
- Parameters
-
[in] | channels | Block with image channels to look for or to create. |
- Returns
- Pixel format on success.
◆ FindOrCreatePixelFormat() [2/3]
Create of find a pixel format. This function simplifies the usage without the need to create the block of channels on the stack:
PixelFormat formatGBR32f = PixelFormatsInterface::FindOrCreatePixelFormat<ImageChannels::Green, ImageChannels::Blue, ImageChannels::Red>()
iferr_return;
#define iferr_return
Definition: resultbase.h:1521
- Returns
- Pixel format on success.
◆ FindOrCreatePixelFormat() [3/3]
static MAXON_FUNCTION Result<PixelFormat> FindOrCreatePixelFormat |
( |
const Block< const ImageChannelType > & |
imageChannelTypes | ) |
|
|
static |
Create of find a pixel format. This function simplifies the usage without the need to create the array of channels on the stack:
- Parameters
-
[in] | imageChannelTypes | Image Channel types. PixelFormat formatGBR32f = PixelFormatsInterface::FindOrCreatePixelFormat<ImageChannels::Green, ImageChannels::Blue, ImageChannels::Red>() iferr_return;
|
- Returns
- Pixel format on success.