I need to get the world map on the screen limited to the bounds like such latlon coordinates as below. Is it possible to convert these geocoordinates to pixels and then to set these pixels to the viewport or to do this in some other way? I try to manipulate with the Rectangle2D parameters, but it is not the solution of this problem. Maybe you can give some rescue suggestions, please?
The end result of this application should be the part of the world map in the stereographic projection limited to these coordinates and saved as a picture of at least 1600 x 1200 pixels in size and at the same time with acceptable image quality. The excess territory is needed to be removed. I saved the too large image of the world map (see picture), and then I used the MarvinImage library to remove the extra territory, but at the same time the quality of the final image is greatly reduced. Therefore, I try to enlarge the the desired area of the world map, which is displayed in the JFrame, so it could be saved as a picture without additional cutting. In other words? I need to enlarge so the worl map to get the geocoordinate xy_1 in the left top corner of the JFrame, the xy_2 - in the right top corner and so on, and the size of JFrame must be close to the real size of the monitor screen.