|
fastdo
0.5.12
|
颜色类 更多...
#include <eiengd.hpp>
Public 成员函数 | |
| Color (Image &im) | |
| Color (Image &im, int red, int green, int blue, winux::Mixed const &mixed=winux::Mixed()) | |
| 构造颜色对象,如果是调色板图则增加颜色数,如果是真彩图,则什么都不做。 更多... | |
| ~Color () | |
| Color & | alloc (int red, int green, int blue, winux::Mixed const &mixed=winux::Mixed()) |
| 分配颜色,如果是调色板图则增加颜色数,如果是真彩图,则什么都不做。 更多... | |
| Color & | transparent (int red, int green, int blue) |
| Color & | alpha (int red, int green, int blue, int alpha=0) |
| void | dealloc () |
| Color (Color const &other) | |
| Color & | operator= (Color const &other) |
友元 | |
| class | Graphics |
颜色类
在文件 eiengd.hpp 第 69 行定义.
| eiengd::Color::Color | ( | Image & | im | ) |
| eiengd::Color::Color | ( | Image & | im, |
| int | red, | ||
| int | green, | ||
| int | blue, | ||
| winux::Mixed const & | mixed = winux::Mixed() |
||
| ) |
构造颜色对象,如果是调色板图则增加颜色数,如果是真彩图,则什么都不做。
| im | Image& |
| red | int |
| green | int |
| blue | int |
| mixed | Mixed 若为true,则指定透明色;若为数字,则分配alpha色;默认是null分配普通色 |
| eiengd::Color::~Color | ( | ) |
| eiengd::Color::Color | ( | Color const & | other | ) |
| Color& eiengd::Color::alloc | ( | int | red, |
| int | green, | ||
| int | blue, | ||
| winux::Mixed const & | mixed = winux::Mixed() |
||
| ) |
分配颜色,如果是调色板图则增加颜色数,如果是真彩图,则什么都不做。
| red | int |
| green | int |
| blue | int |
| mixed | Mixed 若为true,则指定透明色;若为数字,则分配alpha色;默认是null分配普通色 |
|
inline |
在文件 eiengd.hpp 第 102 行定义.
| void eiengd::Color::dealloc | ( | ) |
|
inline |
在文件 eiengd.hpp 第 97 行定义.
|
friend |
在文件 eiengd.hpp 第 113 行定义.