/** * Converts Millimeters and returns pixels using the resolution of the * given component's graphics object. * * @param mm Millimeters * @param component the component that provides the graphics object * @return the given Millimeters as pixels */ public static int millimeterAsPixel(double mm, Component component) { return mm == 0d ? 0 : getUnitConverter().millimeterAsPixel(mm, component); }
/** * Converts Millimeters and returns pixels using the resolution of the given * component's graphics object. * * @param mm * Millimeters * @param component * the component that provides the graphics object * @return the given Millimeters as pixels */ public static int millimeterAsPixel(double mm, Component component) { return mm == 0d ? 0 : getUnitConverter().millimeterAsPixel(mm, component); }
/** * Converts Millimeters and returns pixels using the resolution of the * given component's graphics object. * * @param mm Millimeters * @param component the component that provides the graphics object * @return the given Millimeters as pixels */ public static int millimeterAsPixel(double mm, Component component) { return mm == 0d ? 0 : getUnitConverter().millimeterAsPixel(mm, component); }