ViewCaptureToFile - Pixel Conversion

I am using ViewCaptureToFile command, and I specified 39.46 x 25.16 cm at 300 DPI and I get 4735 x 3019 px. Why?

Isn’t 39.46/2.54 = 15.5354331
15.5354331 * 300 = 4660.62

And 25.16/2.54 = 9.9055118
9.9055118 * 300 = 2971.65

Should be 4660 x 2971 px

Also, I noticed than when selecting inches, my 39.46 cm x 25.16 cm gets converted to 15.78 x 10.06 inches, which doesn’t make sense.

39.46 cm = 15.535433 in
25.16 cm = 9.9055118 in

image

image

image

I think this is because the aspect ratio you specify is not the same as the viewport aspect ratio, so Rhino is interpolating to get the entire viewport.

1 Like

Aha, that may be it.