protected static final int millimeterAsPixel(double mm,int dpi){
  return (int)Math.round(dpi * mm * 10 / 254);
}

protected static final int millimeterAsPixel ( double mm , int dpi ) { return ( int ) Math . round ( dpi * mm * 10 / 254 ) ; }
converts millimeters and returns pixels using the specified resolution .
