이미지 축소시 원본 비율 유지하기

이미지 축소시 원본 비율을 유지하려면(확대도 마찬가지임)

double 축소비율 = 더작은값(축소본Width/원본Width, 축소본Height/원본Height);
int 최종Width = 원본Width * 축소비율;
int 최종Height = 원본Height * 축소비율;