ImageChannelTypeInterface Class Reference

#include <gfx_image_imagechannel.h>

Inheritance diagram for ImageChannelTypeInterface:

Detailed Description

ImageChannelTypes define how a pixel channel should be interpreted.

Public Member Functions

MAXON_METHOD Pix8u GetDefaultFillValue () const
 
MAXON_METHOD ColorSpace GetColorSpace () const
 
MAXON_METHOD ImageChannel GetChannel (const DataType &pixelType) const
 
template<typename PIXELDEPTH >
MAXON_FUNCTION ImageChannel GetChannel () const
 
template<typename PIXELDEPTH >
ImageChannel GetChannel () const
 

Private Member Functions

 MAXON_INTERFACE (ImageChannelTypeInterface, MAXON_REFERENCE_CONST, "net.maxon.image.interface.imagechanneltype")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( ImageChannelTypeInterface  ,
MAXON_REFERENCE_CONST  ,
"net.maxon.image.interface.imagechanneltype"   
)
private

◆ GetDefaultFillValue()

MAXON_METHOD Pix8u GetDefaultFillValue ( ) const

Returns the default fill value for this type of channel. (e.g. Alpha returns 255 but other channel types may return 0).

◆ GetColorSpace()

MAXON_METHOD ColorSpace GetColorSpace ( ) const

Returns the color space to which the channel type belongs to.

◆ GetChannel() [1/2]

MAXON_METHOD ImageChannel GetChannel ( const DataType pixelType) const

Returns the ImageChannel for the given data type.

◆ GetChannel() [2/2]

MAXON_FUNCTION ImageChannel GetChannel ( ) const

Returns the ImageChannel for the given data type.