//画字符串 drawString(StringNBSPstr, intNBSPx, intNBSPy)//写字//给画笔设置颜色和字体
g.setColor(Color.red);
g.setFont(new Font("隶书",Font.BOLD,50));g.drawString("北京你好",100,100);
//设置画笔的字体setFont(FontNBSPfont)//设置画笔的颜色 setColor(ColorNBSPc)
//画字符串 drawString(StringNBSPstr, intNBSPx, intNBSPy)//写字//给画笔设置颜色和字体
g.setColor(Color.red);
g.setFont(new Font("隶书",Font.BOLD,50));g.drawString("北京你好",100,100);
//设置画笔的字体setFont(FontNBSPfont)//设置画笔的颜色 setColor(ColorNBSPc)
本文标题:画字符串
本文链接:https://www.haomeiwen.com/subject/vntmtrtx.html
网友评论