Bitmap bmp = new Bitmap("filename.bmp");RectangleF rectf = new RectangleF(70, 90, 90, 50);Graphics g = Graphics.FromImage(bmp);g.SmoothingMode = SmoothingMode.AntiAlias;g.InterpolationMode = InterpolationMode.HighQualityBicubic;g.PixelOffsetMode = PixelOffsetMode.HighQuality;g.DrawString("yourText", new Font("Tahoma",8), Brushes.Black, rectf);g.Flush();image.Image=bmp;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)