Code

示例


要加字,就用DrawString

至于你的要写个条码值
用gdi再写个字就好了类似下面


C# code
Bitmap bm = new Bitmap(width, height + 24 ); Graphics g = Graphics.FromImage(bm); .... for (int i = 0; i < drawString.Length; i++) { this.DrawString(drawString[i].ToString(), g); } //字体 Font drawFont = new Font("Arial", 16); //颜色 SolidBrush drawBrush = new SolidBrush(Color.Black); //字体所在矩阵 RectangleF drawRect = new RectangleF(0F, (float)this.height , this.width, (float)24 ); //写字 g.DrawString(this.drawString, drawFont, drawBrush, drawRect);

 

posted on 2009-06-23 09:59  许维光  阅读(619)  评论(0)    收藏  举报