/** * Create an instance of {@link Height } * */ public Height createHeight() { return new Height(); }
public static Image height(Image image, int height) { double actualWidth = image.getWidth().getValue(); double actualHeight = image.getHeight().getValue(); int width = (int)((height * actualWidth) / actualHeight); return XmlImageFactory.px(width, height); } }