70 canvas_.GetVirtualSize(&machWidth, &machHeight);
71 dc->GetSize(&paperWidth, &paperHeight);
73 double scaleX = ((double) paperHeight / (
double) machHeight) * 0.9;
74 double scaleY = ((double) paperWidth / (
double) machWidth) * 0.9;
79 if (scaleX < scaleY) {
92 dc->SetDeviceOrigin(20, 20);
93 dc->SetClippingRegion(0, 0, machWidth + 40, machHeight + 40);
95 dc->SetUserScale(scale, scale);