eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EC24 Struct Reference

Color pixel value coded as 3 unsigned 8-bit integers (red, green and blue components). More...

#include <eVision/Easy/EC24.h>

Public Member Functions

 EC24 ()
 Constructs a EC24 object.
 EC24 (const eVision::ERGBColor &rgbColor)
 Constructs a EC24 object.
 EC24 (uint8_t c0, uint8_t c1, uint8_t c2)
 Constructs a EC24 object.

Static Public Member Functions

static int32_t GetSize ()
 The number of bits in a pixel.

Public Attributes

uint8_t C2
 The value of the third component of the pixel (blue channel).
uint8_t C1
 The value of the second component of the pixel (green channel).
uint8_t C0
 The value of the first component of the pixel (red channel).

Detailed Description

Color pixel value coded as 3 unsigned 8-bit integers (red, green and blue components).

(RGB triplet, windows 24 bpp bitmap format) The pixel values are coded on 24 bits, providing 256 possible levels per color component. This way, RGB images can represent 16,777,216 different colors. This is sufficient for most applications. Most of the eVision color operations apply to this pixel type.

License(s): None

Constructor & Destructor Documentation

◆ EC24() [1/3]

eVision::EC24::EC24 ( )

Constructs a EC24 object.

◆ EC24() [2/3]

eVision::EC24::EC24 ( const eVision::ERGBColor & rgbColor)

Constructs a EC24 object.

Parameters
rgbColorThe value of the pixel as an ERGBColor.

◆ EC24() [3/3]

eVision::EC24::EC24 ( uint8_t c0,
uint8_t c1,
uint8_t c2 )

Constructs a EC24 object.

Parameters
c0The value of the first component of the pixel (red channel).
c1The value of the second component of the pixel (green channel).
c2The value of the third component of the pixel (blue channel).

Member Function Documentation

◆ GetSize()

int32_t eVision::EC24::GetSize ( )
static

The number of bits in a pixel.

Member Data Documentation

◆ C0

uint8_t eVision::EC24::C0

The value of the first component of the pixel (red channel).

◆ C1

uint8_t eVision::EC24::C1

The value of the second component of the pixel (green channel).

◆ C2

uint8_t eVision::EC24::C2

The value of the third component of the pixel (blue channel).