Define MGPixel Class of (R,G,B,A) pixel data.
[詳解]
Define MGPixel Class of (R,G,B,A) pixel data.
MGPixel defines one pixel data of MGImage. That is, one (R,G,B,A) data
| MGPixel::MGPixel |
( |
unsigned |
data = 0 | ) |
|
|
inline |
| MGPixel::MGPixel |
( |
const MGColor & |
color | ) |
|
| unsigned char MGPixel::getAlpha |
( |
| ) |
const |
|
inline |
| unsigned char MGPixel::getBlue |
( |
| ) |
const |
|
inline |
| unsigned char MGPixel::getGreen |
( |
| ) |
const |
|
inline |
| unsigned int MGPixel::getPixel |
( |
| ) |
const |
|
inline |
| const unsigned char* MGPixel::getPixelAsChar |
( |
| ) |
const |
|
inline |
| unsigned char MGPixel::getRed |
( |
| ) |
const |
|
inline |
| bool MGPixel::isNull |
( |
| ) |
const |
|
inline |
Test if this pixel is null pixel(that is, RGBA=(0,0,0,0)).
| MGPixel& MGPixel::operator&= |
( |
unsigned int |
data | ) |
|
|
inline |
| unsigned char& MGPixel::operator[] |
( |
unsigned |
i | ) |
|
|
inline |
| const unsigned char& MGPixel::operator[] |
( |
unsigned |
i | ) |
const |
|
inline |
| MGPixel& MGPixel::operator|= |
( |
unsigned int |
data | ) |
|
|
inline |
| void MGPixel::setAlpha |
( |
unsigned char |
A | ) |
|
|
inline |
| void MGPixel::setBlue |
( |
unsigned char |
B | ) |
|
|
inline |
| void MGPixel::setGreen |
( |
unsigned char |
G | ) |
|
|
inline |
| void MGPixel::setPixel |
( |
unsigned int |
pixel | ) |
|
|
inline |
| void MGPixel::setRed |
( |
unsigned char |
R | ) |
|
|
inline |
| void MGPixel::setRGB |
( |
const MGPixel & |
pixel2 | ) |
|
Set only RGB of pixel2 without updating Alpha data.
このクラス詳解は次のファイルから抽出されました: