我需要将一些文本添加到现有的表格图像(png).这意味着我需要在图像上"写",我需要选择文本位置.我该怎么做?非常感谢你.
java string graphics text image
我的程序覆盖public void paint(Graphics g, int x, int y);,以便使用g.drawString(someString, x+10, y+30);
public void paint(Graphics g, int x, int y);
g.drawString(someString, x+10, y+30);
现在someString可能很长,因此它可能不适合一行.
在多行上写文本的最佳方法是什么.例如,在矩形(x1,y1,x2,y2)中?
java string graphics
graphics ×2
java ×2
string ×2
image ×1
text ×1