相关疑难解决方法(0)

如何在java中向图像添加文本?

我需要将一些文本添加到现有的表格图像(png).这意味着我需要在图像上"写",我需要选择文本位置.我该怎么做?非常感谢你.

java string graphics text image

56
推荐指数
1
解决办法
5万
查看次数

如何使用Graphics在多行上输出String

我的程序覆盖public void paint(Graphics g, int x, int y);,以便使用g.drawString(someString, x+10, y+30);

现在someString可能很长,因此它可能不适合一行.

在多行上写文本的最佳方法是什么.
例如,在矩形(x1,y1,x2,y2)中?

java string graphics

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

graphics ×2

java ×2

string ×2

image ×1

text ×1