Commit e7658826 authored by Guillaume Beraudo's avatar Guillaume Beraudo

Added convenient methods isPortrait(), createInverted()

parent 684c6fa5
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment