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

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

#include <eVision/Easy/EC24A.h>

Public Member Functions

 EC24A ()
 Constructs a EC24A object.
 EC24A (uint8_t c0, uint8_t c1, uint8_t c2, uint8_t a)
 Constructs a EC24A object.
 EC24A (uint8_t c0, uint8_t c1, uint8_t c2)
 Constructs a EC24A 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).
uint8_t A
 The value of the alpha component of the pixel. A value of 0 means that the pixel is fully transparent and 255 fully opaque.

Detailed Description

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

This class is suited to handle the Windows 32-bit ARGB color format. The pixel values are coded on 32 bits, leaving 256 possible levels per color component (red, green, blue), as well as 8 more bits for an alpha channel.

License(s): None

Constructor & Destructor Documentation

◆ EC24A() [1/3]

eVision::EC24A::EC24A ( )

Constructs a EC24A object.

◆ EC24A() [2/3]

eVision::EC24A::EC24A ( uint8_t c0,
uint8_t c1,
uint8_t c2,
uint8_t a )

Constructs a EC24A 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).
aThe value of the alpha component of the pixel. A value of 0 means that the pixel is fully transparent and 255 fully opaque.

◆ EC24A() [3/3]

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

Constructs a EC24A 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::EC24A::GetSize ( )
static

The number of bits in a pixel.

Member Data Documentation

◆ A

uint8_t eVision::EC24A::A

The value of the alpha component of the pixel. A value of 0 means that the pixel is fully transparent and 255 fully opaque.

◆ C0

uint8_t eVision::EC24A::C0

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

◆ C1

uint8_t eVision::EC24A::C1

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

◆ C2

uint8_t eVision::EC24A::C2

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