更奇怪的问题来了,接上面输入一下代码,输出的3.bmp为1.08KBBitmap myBitmap2 =new Bitmap(@"c:\2.bmp");
Graphics myGraphics=Graphics.FromImage(myBitmap2);
string myWord="hi";
Font myFont=new Font(new FontFamily("宋体"),20,FontStyle.Regular,GraphicsUnit.Pixel);
SolidBrush myBrush=new SolidBrush(Color.Black);
Graphics.DrawString(myWord,myFont,myBrush,new PointF(10,10));
myBitmap2.Save(@"c:\3.bmp");