-
FontExporter:将指定文件包含的文本,用指定的字体和大小导出到字库。 <br><br>PicFont:在另一个系统显示字库,可...
FontExporter:将指定文件包含的文本,用指定的字体和大小导出到字库。 PicFont:在另一个系统显示字库,可以将上面导出的文本,用同样的字体和大小显示出来。使用的时候,先用 FontExporter 将图片字库导出,eg.java util.loc.FontExporter 宋体 12 text.xml 0 FL12然后在J2ME工程里面加入 PicFont.java,Lib.java,DataReader.java,创建PicFont对象,载入图片字用PicFont对象的 load()方法。画图片字用drawChar()方法。目前图片字支持各种字体,大小是1~32像素,渐变、阴影特效。-FontExporter: the specified file contains the text, using the specified font and font size of export. PicFont: show the font in another system, you can export the text above with the same font and size displayed. Use when FontExporter will first export the picture font, eg. java util.loc.FontExporter Song 12 text.xml 0 FL12 Then add it in the J2ME project PicFont.java, Lib.java, DataReader.java, create PicFont object, load the word picture PicFont object using load () method. Draw pictures with words drawChar () method.
- 2022-03-20 18:28:52下载
- 积分:1
-
java 为图片添加水印 示例
为图片添加水印 【核心代码】 /*** 添加水印* @param imagePath 图片绝对路径* @param watermarkPath 水印图片绝对路径* @param position 水印图片位置* @return 生成水印图片的绝对路径*/public static String addWatermark(String imagePath, String watermarkPath, String position) {logger.info("为图片({})在位置{}添加水印({})", imagePath, position, watermarkPath);if (StringUtils.isNotBlank(imagePath) && StringUtils.isNotBlank(watermarkPath)) {File image = new File(imagePath);File watermark = new File(watermarkPath);Position pos = getPostion(position);if (image.isFile() && image.exists() && watermark.isFile()) {try {BufferedImage bi = ImageIO.read(image);Builder builder = Thumbnails.of(imagePath);BufferedImage watermarkImg = ImageIO.read(watermark);File newWatermark = null;// 原图的宽或高是水印图片宽或高的2倍及以上,则直接打上水印原图;否则缩略水印图片,以原图宽或高的二分之一if (bi.getWidth() / watermarkImg.getWidth()
- 2017-10-13下载
- 积分:1
-
J2me游戏精灵
J2me游戏精灵-J2me game genies
- 2022-05-24 15:11:33下载
- 积分:1
-
java_j2me casual game source code www.csdn.net
java_j2me坦克大战游戏源代码 www.csdn.net-java_j2me casual game source code www.csdn.net
- 2022-03-14 08:43:40下载
- 积分:1
-
简单介绍了一些图层和图层管理器的用法,十分适合初学者
简单介绍了一些图层和图层管理器的用法,十分适合初学者-Introduce a number of easy Layer Manager layers and the usage is very suitable for beginners
- 2022-04-23 03:29:35下载
- 积分:1
-
LinkLook
说明: 连连看J2ME,这是自己的第二个游戏。代码之中多多粗糙,大家多多提意见(1000 block of Terry Avenue, it is their second game. Rough code among many, everyone to speak up)
- 2006-04-28 20:16:24下载
- 积分:1
-
此代码是一个j2me视频播放控制程序,其中有滑杆进行控制,代码长度虽小,但很经典....
此代码是一个j2me视频播放控制程序,其中有滑杆进行控制,代码长度虽小,但很经典.-This code is a j2me video player control program, which has the slider control, the code length is small, but very classic.
- 2022-02-13 11:09:32下载
- 积分:1
-
J2ME的游戏原代码!希望能帮助有需要帮助的师兄弟们!
J2ME的游戏原代码!希望能帮助有需要帮助的师兄弟们!-J2ME game source code! Want to help those in need of help师兄弟们!
- 2022-04-23 10:32:15下载
- 积分:1
-
pacman_src
一个基于J2ME的pacman游戏,对从事J2ME开发者大有帮助。(J2ME based on the pacman game, engaged in J2ME developer of great help.)
- 2008-06-05 16:03:42下载
- 积分:1
-
Classic FC Game super Planet War, the J2ME version! ! Function basically achie...
经典FC游戏《超惑星战记》的J2ME版本!!功能基本上都实现了-Classic FC Game super Planet War, the J2ME version! ! Function basically achieve a
- 2023-07-19 04:00:03下载
- 积分:1