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