Package 

Class Dimension


  • 
    public class Dimension
    
                        

    Represents either the width or height of a Size.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Dimension.Pixels

      Represents a fixed, positive number of pixels.

      public class Dimension.Undefined

      Represents an undefined pixel value.

      E.g. given Size(400, Dimension.Undefined), the image should be loaded to fit/fill a width of 400 pixels irrespective of the image's height.

      This value is typically used in cases where a dimension is unbounded (e.g. WRAP_CONTENT, Constraints.Infinity).

      NOTE: If either dimension is Undefined, Options.scale is always Scale.FIT.