| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
13年前发布

生成图片和文本特效的J2ME类库 - J2ME ARMY KNIFE

J2ME ARMY KNIFE是目前唯一一个能够快速生成图片和文本特效的J2ME类库。易于使用,只需要几行代码就能够生成你所需要的图片。

// Declare variables  int step = 0;  Image result = null;  ImageTransformationOverlayMask overlay;    // Initialize the mask overlay effect  overlay = new ImageTransformationOverlayMask();    // Set the image to use as a mask  overlay.setMaskImage(maskImage);    while (true)  {    // Set offsets (to create the scroll effect)  overlay.setVerticalOffset(step);  overlay.setHorizontalOffset(step);    // Process the source image  result = overlay.process(sourceImage);    // Draw the result on screen  g.drawImage ( result, 0, 0, Graphics.TOP | Graphics.LEFT );    // Increment the step  step++;    }

项目主页:http://www.open-open.com/lib/view/home/1341194697684

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1341194697684.html
J2ME Java开发