g2.
scale
((double)res/72,(double)res/72); g2.
translate
((hSize/2)*ds,(vSize/2)*ds);
Figure 2