public class FitCombinedScaler extends Object
Modifier and Type | Method and Description |
---|---|
static Extent |
scaleToWidth(List<List<ExtentToArrange>> partitions,
boolean permitPartialFinalRow,
int width)
Calculates the size of the combined image to use for the montage, and scales the associated
Extent each to match. |
public static Extent scaleToWidth(List<List<ExtentToArrange>> partitions, boolean permitPartialFinalRow, int width)
Extent
each to match.
The state of each ExtentToArrange
is changed to assign a new scaled size to match.
partitions
- the Extent
s partitioned into rows.permitPartialFinalRow
- allows the final row to only be partially filled, so as to keep
its height similar to other rows.width
- the desired width of the combiend image.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.