API仕様 (8bpp画像操作)

mdi_img8_copy( destImgIndex, srcImgIndex )

destImgIndexのバッファに、srcImgIndexの画像をコピーします。コピーされる側のバッファは、自動的にコピー元のサイズに変更されます。

mdi_img8_resize( imgIndex, width, height )

imgIndexバッファの画像を、幅width 高さheightにリサイズします。リサイズ後の画像内容は初期化されます。

w,h = mdi_img8_size( imgIndex )

imgIndexバッファの画像サイズ(幅と高さ)を取得します。

value = mdi_img8_pixelget( imgIndex, x,y )

imgIndexバッファの画素を取得します。

mdi_img8_pixelset( imgIndex, x,y, value,alpha )

imgIndexバッファの画像に、valueを不透明度alphaでブレンドして画素を置きます。

mdi_img8_pixelcopy( imgIndex, x,y, value )

imgIndexバッファの画像に、valueを完全に上書きし画素をセットします。ブレンドされません。