Enrollment 28.2.0
Loading...
Searching...
No Matches

It holds RGB colors. More...

#include <ImageAttribute.h>

Collaboration diagram for RGB:

Public Member Functions

void WriteTo (Writer &writer) const final
 Write itself into writer.

Public Attributes

unsigned char red = 0
 Red value of RGB color model. The value is in range <0,255>.
unsigned char green = 0
 Green value of RGB color model. The value is in range <0,255>.
unsigned char blue = 0
 Blue value of RGB color model. The value is in range <0,255>.

Detailed Description

It holds RGB colors.

The RGB colour model is an additive color model in which the red, green and blue primary colors of light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue. The main purpose of the RGB color model is for the sensing, representation, and display of images in electronic systems, such as televisions and computers, though it has also been used in conventional photography. Before the electronic age, the RGB color model already had a solid theory behind it, based in human perception of colors. [17]

Member Function Documentation

◆ WriteTo()

void WriteTo ( Writer & writer) const
inlinefinalvirtual

Write itself into writer.

Parameters
writerWriter to use to serialize this Serializable

Implements Serializable.

References blue, green, and red.


The documentation for this class was generated from the following file: