예제 #1
0
 public boolean isSameOrientationThan(BitmapSize bitmapSize) {
   return !(isPortrait() ^ bitmapSize.isPortrait());
 }
예제 #2
0
 /**
  * @param bitmapSize Bitmap-size to use as reference; this object will be checked against this
  *     parameters to see if it can fit inside or not.
  * @return True if this bitmap-size can fit inside the bitmap-size passes as argument; returns
  *     true also if it can fit after a 90° rotation
  */
 public boolean includedIn(BitmapSize bitmapSize) {
   if (getSmallSide() > bitmapSize.getSmallSide() || getLargeSide() > bitmapSize.getLargeSide())
     return false;
   return true;
 }