Question
When scaling an image to a specific size, are there two different approaches?
You need to set different object styles:
You need to decide whether to enlarge or reduce the size and choose the appropriate option.
For example, I want to reduce all images to 60 mm.
This is too tedious. Is there a simpler way?
This seems like a foolish plan:
if (imw <= 60) {
w.frameFittingOptions.fittingOnEmptyFrame = FitOptions.FILL_PROPORTIONALLY;
}
if (imw > 60) {
w.frameFittingOptions.fittingOnEmptyFrame = FitOptions.PROPORTIONALLY;
}
. . .
. . .
sel.fit(FitOptions.FRAME_TO_CONTENT);
