PixelDepthInfo< PIXELDEPTH > Struct Template Reference

#include <gfx_image_pixelformat_template.h>

详细描述

template<typename PIXELDEPTH>
struct maxon::PixelDepthInfo< PIXELDEPTH >

Template class offers properties of a pixel depth. The values All Pixel Depths need to define the full set of type aliases and static vars.

Public Types

using  PIXELTOLERANCE_ABSTYPE = Int32
using  SUM_TYPE = PIXELDEPTH

静态公共属性

static const PIXELDEPTH  DEFAULTALPHA_VALUE
static const PIXELDEPTH  MAXPIXEL_VALUE
static const PIXELDEPTH  ZEROPIXEL_VALUE
static const PIXELDEPTH  PIXELTOLERANCE_ZERO
static const PIXELDEPTH  PIXELTOLERANCE_ONE

Member Typedef Documentation

◆  PIXELTOLERANCE_ABSTYPE

using PIXELTOLERANCE_ABSTYPE = Int32

returns the data type if using the absolute type.

◆  SUM_TYPE

using SUM_TYPE = PIXELDEPTH

returns the data type if pixel values will be added.

Member Data Documentation

◆  DEFAULTALPHA_VALUE

const PIXELDEPTH DEFAULTALPHA_VALUE static

returns the default alpha value for 100% transparency.

◆  MAXPIXEL_VALUE

const PIXELDEPTH MAXPIXEL_VALUE static

returns the 100% value of the component.

◆  ZEROPIXEL_VALUE

const PIXELDEPTH ZEROPIXEL_VALUE static

returns the 0% value of the component.

◆  PIXELTOLERANCE_ZERO

const PIXELDEPTH PIXELTOLERANCE_ZERO static

returns the value that represents a zero tolerance of this type

◆  PIXELTOLERANCE_ONE

const PIXELDEPTH PIXELTOLERANCE_ONE static

returns the value that represents a 8 bit digit tolerance of this pixel type.