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
const MAXON_METHOD 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")

Member Function Documentation


MAXON_INTERFACE ( ImageChannelInterface  ,

◆ 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()

const MAXON_METHOD 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.

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