MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGPixel クラス

Define MGPixel Class of (R,G,B,A) pixel data. [詳解]

公開メンバ関数

 MGPixel (unsigned data=0)
 
 MGPixel (const MGColor &color)
 Conversion conrtructor from MGColor to MGPixel. [詳解]
 
unsigned char getRed () const
 
unsigned char getGreen () const
 
unsigned char getBlue () const
 
unsigned char getAlpha () const
 
unsigned int getPixel () const
 
const unsigned char * getPixelAsChar () const
 
void setRed (unsigned char R)
 
void setGreen (unsigned char G)
 
void setBlue (unsigned char B)
 
void setAlpha (unsigned char A)
 
void setRGB (const MGPixel &pixel2)
 Set only RGB of pixel2 without updating Alpha data. [詳解]
 
void setPixel (unsigned int pixel)
 
unsigned char & operator[] (unsigned i)
 
const unsigned char & operator[] (unsigned i) const
 
MGPixeloperator&= (unsigned int data)
 
MGPixeloperator|= (unsigned int data)
 
bool isNull () const
 Test if this pixel is null pixel(that is, RGBA=(0,0,0,0)). [詳解]
 

詳解

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)

Conversion conrtructor from MGColor to MGPixel.

関数詳解

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.


このクラス詳解は次のファイルから抽出されました: