Panda3D
|
Public Member Functions | |
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) | |
PixelSpec (const xel &rgb) | |
PixelSpec (const xel &rgb, xelval alpha) | |
PixelSpec (const PixelSpec ©) | |
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 |
void | operator= (const PixelSpec ©) |
bool | operator== (const PixelSpec &other) const |
xelval | operator[] (int n) const |
Indexes numerically into the components, in the order R, G, B, A. More... | |
void | output (ostream &out) const |
void | set_alpha (xelval alpha) |
void | set_blue (xelval blue) |
void | set_green (xelval green) |
void | set_red (xelval red) |
Static Public Member Functions | |
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. More... | |
Public Attributes | |
xelval | _alpha |
xelval | _blue |
xelval | _green |
xelval | _red |
Definition at line 111 of file pnmImageHeader.h.
|
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 521 of file pnmImageHeader.I.
References size().
Referenced by PNMImageHeader::set_type().
|
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 534 of file pnmImageHeader.I.
References PNMImageHeader::PixelSpecCount::operator<().
Referenced by operator[]().