public class Size extends Object implements Serializable
Constructor and Description |
---|
Size(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
static Size |
conformToCropRatio(Coords cropCoords,
int targetWidth,
int targetHeight) |
int |
getHeight() |
int |
getWidth() |
static Size |
maxSizeComplyingWithSourceRatio(int sourceWidth,
int sourceHeight,
int maxWidth,
int maxHeight) |
static Size |
maxSizeComplyingWithSourceRatio(int sourceWidth,
int sourceHeight,
int maxWidth,
int maxHeight,
boolean expand) |
public int getWidth()
public int getHeight()
public static Size conformToCropRatio(Coords cropCoords, int targetWidth, int targetHeight)
public static Size maxSizeComplyingWithSourceRatio(int sourceWidth, int sourceHeight, int maxWidth, int maxHeight)
public static Size maxSizeComplyingWithSourceRatio(int sourceWidth, int sourceHeight, int maxWidth, int maxHeight, boolean expand)
Copyright © 2016 Magnolia International Ltd.. All rights reserved.