protected static final int inchAsPixel(double in,int dpi){
  return (int)Math.round(dpi * in);
}

protected static final int inchAsPixel ( double in , int dpi ) { return ( int ) Math . round ( dpi * in ) ; }
converts inches and returns pixels using the specified resolution .
