ImageChannelInterface Class Reference

#include <gfx_image_imagechannel.h>

Inheritance diagram for ImageChannelInterface:

Public Member Functions

MAXON_METHOD BITS GetChannelBits () const
 
MAXON_METHOD ImageChannelType GetChannelType () const
 
MAXON_METHOD const DataTypeGetDataType () const
 
MAXON_METHOD Bool IsIdenticalComponent (const void *a, const void *b, Int oneTolerance) const
 

Private Member Functions

 MAXON_INTERFACE (ImageChannelInterface, MAXON_REFERENCE_CONST, "net.maxon.image.interface.imagechannel", MAXON_IMPLEMENTATION_MODULE("net.maxon.image"))
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( ImageChannelInterface  ,
MAXON_REFERENCE_CONST  ,
"net.maxon.image.interface.imagechannel"  ,
MAXON_IMPLEMENTATION_MODULE("net.maxon.image")   
)
private

◆ GetChannelBits()

MAXON_METHOD BITS GetChannelBits ( ) const

Returns the size in bits of each component.

◆ GetChannelType()

MAXON_METHOD ImageChannelType GetChannelType ( ) const

Returns true if the channel is a alpha channel.

◆ GetDataType()

MAXON_METHOD const DataType& GetDataType ( ) const

Returns the data type of the pixel format.

◆ IsIdenticalComponent()

MAXON_METHOD Bool IsIdenticalComponent ( const void *  a,
const void *  b,
Int  oneTolerance 
) const

Compares two components.

Parameters
[in]aComponent buffer 1.
[in]bComponent buffer 2.
[in]oneTolerancePixel difference related to 0..255 range.
Returns
Returns true is the pixel is within the given tolerance.