/** * Get the width of this image as rendered within Excel * * @param unit the unit of measurement * @return the width of the image within Excel */ public double getWidth(LengthUnit unit) { double widthInPoints = getWidthInPoints(); return widthInPoints * LengthConverter.getConversionFactor (LengthUnit.POINTS, unit); }
/** * Get the height of this image as rendered within Excel * * @param unit the unit of measurement * @return the height of the image within Excel */ public double getHeight(LengthUnit unit) { double heightInPoints = getHeightInPoints(); return heightInPoints * LengthConverter.getConversionFactor (LengthUnit.POINTS, unit); }
/** * Get the width of this image as rendered within Excel * * @param unit the unit of measurement * @return the width of the image within Excel */ public double getWidth(LengthUnit unit) { double widthInPoints = getWidthInPoints(); return widthInPoints * LengthConverter.getConversionFactor (LengthUnit.POINTS, unit); }
/** * Get the height of this image as rendered within Excel * * @param unit the unit of measurement * @return the height of the image within Excel */ public double getHeight(LengthUnit unit) { double heightInPoints = getHeightInPoints(); return heightInPoints * LengthConverter.getConversionFactor (LengthUnit.POINTS, unit); }
/** * Gets the horizontal resolution of the image, if that information * is available. * * @return the number of dots per unit specified, if available, 0 otherwise */ public double getHorizontalResolution(LengthUnit unit) { int res = getPngReader().getHorizontalResolution(); return res / LengthConverter.getConversionFactor(LengthUnit.METRES, unit); }
/** * Gets the horizontal resolution of the image, if that information * is available. * * @return the number of dots per unit specified, if available, 0 otherwise */ public double getHorizontalResolution(LengthUnit unit) { int res = getPngReader().getHorizontalResolution(); return res / LengthConverter.getConversionFactor(LengthUnit.METRES, unit); }
/** * Gets the vertical resolution of the image, if that information * is available. * * @return the number of dots per unit specified, if available, 0 otherwise */ public double getVerticalResolution(LengthUnit unit) { int res = getPngReader().getVerticalResolution(); return res / LengthConverter.getConversionFactor(LengthUnit.METRES, unit); }
/** * Gets the vertical resolution of the image, if that information * is available. * * @return the number of dots per unit specified, if available, 0 otherwise */ public double getVerticalResolution(LengthUnit unit) { int res = getPngReader().getVerticalResolution(); return res / LengthConverter.getConversionFactor(LengthUnit.METRES, unit); }