The code for image compositing doesn't appear to honor a PNGs
transparency. Has anyone been able to successfully composite a
transparent png over another image in the latest version of the SDK
(1.6.1). I have seen some posts (
http://groups.google.com/group/google-appengine/browse_thread/thread/0c94387e44f3ad2b
) and a reference to a fixed defect on the python side of GAE and some
posts about applying a watermark but it's unclear that this actually
works now. There's also
http://groups.google.com/group/google-appengine-java/browse_thread/thread/a813aba0e383ff9/b5f100434bf2a83b?lnk=gst&q=watermark#b5f100434bf2a83b
where the solution was to incorporate a GWT canvas.
I have something along the lines of,
Image image = null;
List<Composite> composites = new ArrayList<Composite>();
Iterator<ImageObj> iterator = images.iterator();
while (iterator.hasNext()) {
ImageObj io = (ImageObj)iterator.next();
//returns an Image
image = io.getImage(someWidth, someHeight);
composites.add(ImagesServiceFactory.makeComposite(image, io.x, io.y,
1.0f, Composite.Anchor.TOP_LEFT));
}
//Image newImage =
ImagesServiceFactory.getImagesService().composite(composites, width,
height, 0xffffffffL);
image = ImagesServiceFactory.getImagesService().composite(composites,
width, height, 0);
Where some images are JPEGs and some are PNGs with transparency.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.