eVision Python API
Loading...
Searching...
No Matches
eVision.EC24A Class Reference

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

Public Member Functions

None __init__ (self)
 Constructs a eVision.EC24A object.
None __init__ (self, int c0, int c1, int c2, int a)
 Constructs a eVision.EC24A object.
None __init__ (self, int c0, int c1, int c2)
 Constructs a eVision.EC24A object.
None __init__ (self, int C2)
None __init__ (self, int C2, int C1)
None __init__ (self, eVision.EC24A other)

Static Public Member Functions

int GetSize ()
 The number of bits in a pixel.

Properties

 C2 = property(_C2__getter, _C2__setter)
 The value of the third component of the pixel (blue channel).
 C1 = property(_C1__getter, _C1__setter)
 The value of the second component of the pixel (green channel).
 C0 = property(_C0__getter, _C0__setter)
 The value of the first component of the pixel (red channel).
 A = property(_A__getter, _A__setter)
 The value of the alpha component of the pixel.

Detailed Description

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

Remarks:

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

◆ __init__() [1/6]

None eVision.EC24A.__init__ ( self)

Constructs a eVision.EC24A object.

◆ __init__() [2/6]

None eVision.EC24A.__init__ ( self,
int c0,
int c1,
int c2,
int a )

Constructs a eVision.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.

◆ __init__() [3/6]

None eVision.EC24A.__init__ ( self,
int c0,
int c1,
int c2 )

Constructs a eVision.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).

◆ __init__() [4/6]

None eVision.EC24A.__init__ ( self,
int C2 )
Parameters
C2The value of the third component of the pixel (blue channel).

◆ __init__() [5/6]

None eVision.EC24A.__init__ ( self,
int C2,
int C1 )
Parameters
C2The value of the third component of the pixel (blue channel).
C1The value of the second component of the pixel (green channel).

◆ __init__() [6/6]

None eVision.EC24A.__init__ ( self,
eVision.EC24A other )
Parameters
otherOther instance

Member Function Documentation

◆ GetSize()

int eVision.EC24A.GetSize ( )
static

The number of bits in a pixel.

Property Documentation

◆ A

eVision.EC24A.A = property(_A__getter, _A__setter)
static

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

eVision.EC24A.C0 = property(_C0__getter, _C0__setter)
static

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

◆ C1

eVision.EC24A.C1 = property(_C1__getter, _C1__setter)
static

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

◆ C2

eVision.EC24A.C2 = property(_C2__getter, _C2__setter)
static

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