Added convenient methods isPortrait(), createInverted()

This commit is contained in:
Guillaume Beraudo 2010-12-09 16:06:58 +01:00
parent 684c6fa545
commit e76588265b

View file

@ -83,5 +83,15 @@ public final class VideoSize {
return true;
}
@Override
public String toString() {
return "width = "+width + " height = " + height;
}
public boolean isPortrait() {
return height >= width;
}
public VideoSize createInverted() {
return new VideoSize(height, width);
}
}