#include #using #using using namespace System; using namespace System::Drawing; using namespace System::Drawing::Imaging; int main(){ Bitmap^ bmp=gcnew Bitmap(200,100); Graphics^ grp=Graphics::FromImage(bmp); grp->FillRectangle(gcnew SolidBrush(Color::Red),0,0,200,100); grp->DrawString("GIFファイル出力", gcnew Font("MS Pゴシック",16), gcnew SolidBrush(Color::FromArgb(255,255,128)), 10,10); bmp->Save("d:\\GIF.gif", ImageFormat::Gif); getchar(); return 0; }