Package com.sksamuel.scrimage
Class DimensionTools
- java.lang.Object
-
- com.sksamuel.scrimage.DimensionTools
-
public class DimensionTools extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Color
BG_COLOR
static int
SCALING_METHOD
-
Constructor Summary
Constructors Constructor Description DimensionTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Dimension
dimensionsToCover(Dimension target, Dimension source)
static Dimension
dimensionsToFit(Dimension target, Dimension source)
Returns width and height that allow the given source width, height to fit inside the target width, height without losing aspect ratio
-
-
-
Field Detail
-
BG_COLOR
public static final java.awt.Color BG_COLOR
-
SCALING_METHOD
public static final int SCALING_METHOD
- See Also:
- Constant Field Values
-
-