CMglImage::Draw()

void Draw(
	float x=0, float y=0, CONST RECT *srcRect=NULL, D3DCOLOR color=D3DCOLOR_FULLWHITE,
	float fScallX=1.0f, float fScallY=1.0f, float fRotationCenterX=0.5f, float fRotationCenterY=0.5f, float fAngle=0.0f );
void Draw( CMglImage* destSurface,
	float x=0, float y=0, CONST RECT *srcRect=NULL, D3DCOLOR color=D3DCOLOR_FULLWHITE,
	float fScallX=1.0f, float fScallY=1.0f, float fRotationCenterX=0.5f, float fRotationCenterY=0.5f, float fAngle=0.0f );


概要

描画処理を行います。


引数

x - 描画開始位置のX
y - 描画開始位置のY
srcRect - 描画対象として使用する矩形
color - 乗算する色、及びアルファチャネル。省略時は乗算色、アルファブレンド共に無し

fScallX - 横の伸縮率。省略時1.0(伸縮なし)
fScallY - 縦の伸縮率。省略時1.0(伸縮なし)
fRotationCenterX - 回転の中心のX座標(BMPデータ上の)。省略時0.5(中心)
fRotationCenterY - 回転の中心のY座標(BMPデータ上の)。省略時0.5(中心)
fAngle - 回転の角度。省略時0(回転なし)

destSurface - 描画先を別の CMglImage にする場合はこれを指定。

 
 
戻る