When I use the following method from your examples to try to make a stencil file with PNG Images:
public static Master createMaster(final int masterId, final String name, final java.awt.Image Image) throws Exception {
…...Error saving templates with PNG Images Aspose.Diagram Product Family...height of shape’s xform and image. If there are still issues,...