public final class SizeSelectionHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <any> |
getBestSize(java.util.List pictureSizes,
java.util.List previewSizes,
int maxArea,
int minArea,
float minAspectRatio) |
static Size |
getClosestSizeWithSimilarAspectRatio(java.util.List sizes,
Size referenceSize,
int maxArea) |
static Size |
getLargestAllowedSize(java.util.List sizes,
int maxArea) |
static Size |
getLargestAllowedSizeWithSimilarAspectRatio(java.util.List sizes,
Size referenceSize,
int maxArea) |
public static <any> getBestSize(java.util.List pictureSizes, java.util.List previewSizes, int maxArea, int minArea, float minAspectRatio)
public static Size getLargestAllowedSize(java.util.List sizes, int maxArea)
public static Size getLargestAllowedSizeWithSimilarAspectRatio(java.util.List sizes, Size referenceSize, int maxArea)