设为首页 加入收藏

TOP

Linux平台下对JMagick的一个简单封装(三)
2014-11-24 03:03:29 来源: 作者: 【 】 浏览:9
Tags:Linux 台下 JMagick 一个 简单 封装
g", "reSize120x120.bmp", 120, 120);
JMagicjWrapper.imageResize("pics.jpg", "reSize.tif", 20, 30);//not create file


//test for function createWaterPrintByImg
JMagicjWrapper.createWaterPrintByImg("pics.jpg", "wpl.gif", "logo.jpg", new Point(100,100));
JMagicjWrapper.imageResize("wpl.gif", "logo250x200.gif", 250, 200);
//Because file "wpl.gif" may not be release, the later function cause a error, can not open file handle.
//JMagicjWrapper.createWaterPrintByImg("pics.jpg", "wpl.gif", "logoFull.jpg", new Point(1680,1050));//not create file
//JMagicjWrapper.createWaterPrintByImg("pics.jpg", "wpl.gif", "logoExt.jpg", new Point(2000,1000));//not create file

//test for function createWaterPrintByText
//This function can not handle Chinese Character, I'll continue to takle the issue
JMagicjWrapper.createWaterPrintByText("pics1.jpg", "wpt.gif", "For Test", new Point(300,300), 100);
}
}


运行可能会报无法获得文件句柄的错误,请仔细检查图片的路径。



首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Ubuntu 10.04 编译源码运行模拟器 下一篇Linux 2.6.32 在Arm9(s3c2440)..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·switch520最新的地址 (2025-12-24 19:19:41)
·微信聊天功能使用了 (2025-12-24 19:19:39)
·websocket和普通的so (2025-12-24 19:19:36)
·Python中文网 - 人生 (2025-12-24 18:49:47)
·【整整648集】这绝对 (2025-12-24 18:49:44)