Google App Engine中的Watermark中的图像(Java) [英] Images in Watermark in Google App Engine (Java)

查看:160
本文介绍了Google App Engine中的Watermark中的图像(Java)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在AppEnginge中使用ImageService在图像上添加水印。图像被上传到blobstore然后服务。简单的文字水印就可以了。

How to use ImageService in AppEnginge to add watermark on images. Images are uploaded to blobstore then serve. Simple text watermark will do.

这个有什么参考?谢谢

Any reference on this? Thanks

推荐答案

您可以使用 ImagesServiceFactory.makeComposite ,它允许您指定X和Y位置以及图像的不透明度以进行合成到画布上(基本图像)。只需使用 ImagesServiceFactory.makeImageFromFilename

You can do this using ImagesServiceFactory.makeComposite, which allows you to specify X and Y positions and an opacity for an image to composite onto a canvas (the base image). Simply include your watermark image as a resource your app can access using ImagesServiceFactory.makeImageFromFilename.

这篇关于Google App Engine中的Watermark中的图像(Java)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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