Package 

Class Size


  • 
    public final class Size
    
                        

    Represents the target size of an image request.

    Each Size is composed of two Dimensions, width and height. Each dimension determines by how much the source image should be scaled. A Dimension can either be a fixed pixel value or Dimension.Undefined. Examples:

    • Given Size(400, 600), the image should be loaded to fit/fill a width of 400 pixels and a height of 600 pixels.

    • Given Size(400, Dimension.Undefined), the image should be loaded to fit/fill a width of 400 pixels.

    • Given Size(Dimension.Undefined, Dimension.Undefined), the image should not be scaled to fit/fill either width or height. i.e. it will be loaded at its original width/height.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Size.Companion
    • Method Summary

      Modifier and Type Method Description
      final Dimension getWidth()
      final Dimension getHeight()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait