LoginSignup
0
0

More than 5 years have passed since last update.

System.Drawing.Bitmap に文字を追記する

Posted at

System.Drawing.Bitmap bitmapStream に文字を追記する。

//ImageオブジェクトのGraphicsオブジェクトを作成する
Graphics g = Graphics.FromImage(bitmapStream);


//フォントオブジェクトの作成
Font fnt = new Font("MS UI Gothic", 50);
//文字列を位置(0,0)、青色で表示
g.DrawString("追記したい文字列", fnt, Brushes.Blue, 0, 0);
g.Dispose();

保存は以下のような感じに

bitmapStream(filename);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0