我想将更多具有透明背景的 png 组合成一个图像,该图像稍后将提供给客户端。如何在 appengine 中实现这一点?似乎 api 不起作用,因为不尊重透明度。这是我的片段:
ArrayList<Composite> comps = new ArrayList<Composite>();
comps.add(ImagesServiceFactory.makeComposite(getImageFromStaticFile("imgs/odontogram/dente_colore/dente_colore_11.png"), 0, 0, 1, Anchor.TOP_LEFT));
comps.add(ImagesServiceFactory.makeComposite(getImageFromStaticFile("imgs/odontogram/dente_colore/dente_colore_12.png"), 10, 0, 1, Anchor.TOP_LEFT));
long color = 0xFFFFFFFFL;
Image resImg = ImagesServiceFactory.getImagesService().composite(comps, 429, 189, color);
response.getOutputStream().write(resImg.getImageData());