在图像上附加文字 [英] Appending Text On Images

查看:109
本文介绍了在图像上附加文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个背景图片,我想使用Java在图像的特定区域附加文本。这可能吗?我想批量做这件事。

I am having a background image and I want to append text on a specific area of an image using Java.Is that possible? I want to do this for batch.

任何人都可以建议我,我该怎么做?

Can any one suggest me, how can I do that?

有没有可以在图像上附加文字的工具?

Are there any tools where I can append text on images?

推荐答案

使用Graphics2D覆盖BufferedImage上的文本并返回BufferedImage

Java Write Text Image具体字体

http://download.oracle.com/javase/1.3/docs/api/java/awt/Graphics.html#drawString (java.text.AttributedCharacterIterator,int,int)

这篇关于在图像上附加文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆