Lines Matching refs:AspectRatio
32 public final class AspectRatio {
33 private static final AspectRatio ASPECT_RATIO_4x3 = AspectRatio.of(4, 3);
34 private static final AspectRatio ASPECT_RATIO_16x9 = AspectRatio.of(16, 9);
43 private AspectRatio(int width, int height) {
48 public static AspectRatio of(int width, int height) {
52 return new AspectRatio(simplifiedWidth, simplifiedHeight);
55 public static AspectRatio of(Size size) {
59 public static AspectRatio of4x3() {
63 public static AspectRatio of16x9() {
83 if (!(o instanceof AspectRatio))
86 AspectRatio that = (AspectRatio) o;
103 return String.format("AspectRatio[%d:%d]", getWidth(), getHeight());
109 public AspectRatio transpose() {
116 public AspectRatio asLandscape() {
127 public AspectRatio asPortrait() {
139 public AspectRatio withOrientationOf(AspectRatio other) {
150 public boolean isWiderThan(AspectRatio other) {
160 public boolean isTallerThan(AspectRatio other) {
173 AspectRatio original = of(area);