|
| PixelSpec (const xel &rgb) |
|
| PixelSpec (const xel &rgb, xelval alpha) |
|
| PixelSpec (xelval gray_value) |
|
| PixelSpec (xelval gray_value, xelval alpha) |
|
| PixelSpec (xelval red, xelval green, xelval blue) |
|
| PixelSpec (xelval red, xelval green, xelval blue, xelval alpha) |
|
int | compare_to (const PixelSpec &other) const |
|
xelval | get_alpha () const |
|
xelval | get_blue () const |
|
xelval | get_green () const |
|
xelval | get_red () const |
|
bool | operator!= (const PixelSpec &other) const |
|
bool | operator< (const PixelSpec &other) const |
|
bool | operator== (const PixelSpec &other) const |
|
xelval | operator[] (int n) const |
| Indexes numerically into the components, in the order R, G, B, A.
|
|
void | output (std::ostream &out) const |
|
void | set_alpha (xelval alpha) |
|
void | set_blue (xelval blue) |
|
void | set_green (xelval green) |
|
void | set_red (xelval red) |
|
|
static int | size () |
| Specifies the number of components in the PixelSpec; this is always 4, regardless of the type of image it was taken from.
|
|
Definition at line 115 of file pnmImageHeader.h.
◆ PixelSpec() [1/6]
PNMImageHeader::PixelSpec::PixelSpec |
( |
xelval | gray_value | ) |
|
|
inline |
◆ PixelSpec() [2/6]
PNMImageHeader::PixelSpec::PixelSpec |
( |
xelval | gray_value, |
|
|
xelval | alpha ) |
|
inline |
◆ PixelSpec() [3/6]
PNMImageHeader::PixelSpec::PixelSpec |
( |
xelval | red, |
|
|
xelval | green, |
|
|
xelval | blue ) |
|
inline |
◆ PixelSpec() [4/6]
PNMImageHeader::PixelSpec::PixelSpec |
( |
xelval | red, |
|
|
xelval | green, |
|
|
xelval | blue, |
|
|
xelval | alpha ) |
|
inline |
◆ PixelSpec() [5/6]
PNMImageHeader::PixelSpec::PixelSpec |
( |
const xel & | rgb | ) |
|
|
inline |
◆ PixelSpec() [6/6]
PNMImageHeader::PixelSpec::PixelSpec |
( |
const xel & | rgb, |
|
|
xelval | alpha ) |
|
inline |
◆ compare_to()
int PNMImageHeader::PixelSpec::compare_to |
( |
const PixelSpec & | other | ) |
const |
|
inline |
◆ get_alpha()
xelval PNMImageHeader::PixelSpec::get_alpha |
( |
| ) |
const |
|
inline |
◆ get_blue()
xelval PNMImageHeader::PixelSpec::get_blue |
( |
| ) |
const |
|
inline |
◆ get_green()
xelval PNMImageHeader::PixelSpec::get_green |
( |
| ) |
const |
|
inline |
◆ get_red()
xelval PNMImageHeader::PixelSpec::get_red |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool PNMImageHeader::PixelSpec::operator!= |
( |
const PixelSpec & | other | ) |
const |
|
inline |
◆ operator<()
bool PNMImageHeader::PixelSpec::operator< |
( |
const PixelSpec & | other | ) |
const |
|
inline |
◆ operator==()
bool PNMImageHeader::PixelSpec::operator== |
( |
const PixelSpec & | other | ) |
const |
|
inline |
◆ operator[]()
xelval PNMImageHeader::PixelSpec::operator[] |
( |
int | n | ) |
const |
|
inline |
Indexes numerically into the components, in the order R, G, B, A.
This also makes the PixelSpec work like a tuple in Python.
Definition at line 410 of file pnmImageHeader.I.
◆ output()
void PNMImageHeader::PixelSpec::output |
( |
std::ostream & | out | ) |
const |
◆ set_alpha()
void PNMImageHeader::PixelSpec::set_alpha |
( |
xelval | alpha | ) |
|
|
inline |
◆ set_blue()
void PNMImageHeader::PixelSpec::set_blue |
( |
xelval | blue | ) |
|
|
inline |
◆ set_green()
void PNMImageHeader::PixelSpec::set_green |
( |
xelval | green | ) |
|
|
inline |
◆ set_red()
void PNMImageHeader::PixelSpec::set_red |
( |
xelval | red | ) |
|
|
inline |
◆ size()
int PNMImageHeader::PixelSpec::size |
( |
| ) |
|
|
inlinestatic |
Specifies the number of components in the PixelSpec; this is always 4, regardless of the type of image it was taken from.
Definition at line 420 of file pnmImageHeader.I.
◆ _alpha
xelval PNMImageHeader::PixelSpec::_alpha |
◆ _blue
xelval PNMImageHeader::PixelSpec::_blue |
◆ _green
xelval PNMImageHeader::PixelSpec::_green |
◆ _red
xelval PNMImageHeader::PixelSpec::_red |
The documentation for this class was generated from the following files: