Images in Watermark in Google App Engine (Java)

非 Y 不嫁゛ 提交于 2019-12-13 04:33:39

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/11553232/images-in-watermark-in-google-app-engine-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!