question: public static final ImagePoint convertPoint ( MapPoint mapPoint , MapEnvelope mapEnv , int imgHeight , int imgWidth ) { long imageY = Math . round ( convertY ( mapPoint , mapEnv , imgHeight ) ) ; long imageX = Math . round ( convertX ( mapPoint , mapEnv , imgWidth ) ) ; return new ImagePoint ( imageX , imageY ) ; }
target:  This method assumes that parameter p is a DoittPoint in map coordinates and converts it under the assumption that the mapEnv parameter field is properly set in map coordinates and that the imgHeight and imgWidth are the dimensions of the map image in pixels.