C# 文字動態轉成圖片

string str="hello"; Graphics g = Graphics.FromImage(new Bitmap(1, 1)); Font font=new Font("宋體", 9); SizeF sizeF = g.MeasureString(str, font); //測量出字體的高度和寬度 Brush brush; //筆刷,顏色 brush = Brushes.Lime; P
相關文章
相關標籤/搜索