CVB++ 14.0
PfncFormatValue Class Reference

Helper methods for PfncFormat values. /// More...

#include <cvb/pfnc_format.hpp>

Static Public Member Functions

static PfncFormat From (const ColorModel &colorModel, const DataType &dataType)
 Tries to coerce the PfncFormat from the given colorModel and dataType . More...
 
static String ToString (const PfncFormat &pixelFormat)
 Gets the official name for the given pixelFormat . More...
 

Detailed Description

Helper methods for PfncFormat values. ///

Member Function Documentation

◆ From()

static PfncFormat From ( const ColorModel colorModel,
const DataType dataType 
)
inlinestatic

Tries to coerce the PfncFormat from the given colorModel and dataType .

Parameters
colorModelCVB color model.
dataTypeCVB data type.
Returns
The matching PfncFormat; PfncFormat.InvalidPixelFormat if not successful.

◆ ToString()

static String ToString ( const PfncFormat pixelFormat)
inlinestatic

Gets the official name for the given pixelFormat .

Parameters
pixelFormatPFNC pixel format to get name of.
Returns
Name of the given pixelFormat .