Class ImageDimension

java.lang.Object
org.onehippo.forge.gallerymagick.core.ImageDimension
All Implemented Interfaces:
Serializable

public class ImageDimension extends Object implements Serializable
Image Dimension.
See Also:
  • Constructor Details

    • ImageDimension

      public ImageDimension()
    • ImageDimension

      public ImageDimension(int width, int height)
  • Method Details

    • getWidth

      public int getWidth()
    • setWidth

      public void setWidth(int width)
    • getHeight

      public int getHeight()
    • setHeight

      public void setHeight(int height)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toCommandArgument

      public String toCommandArgument()
      Returns:
      String representation for ImageMagick/GraphicsMagick command line usage. A width or height of 0 means "unbounded", and results in a bounding box that does not restrict scaling in either the width or height, respectively. When both width and height are 0 or less, the image is not scaled at all but merely copied.
    • from

      public static ImageDimension from(int width, int height)
    • from

      public static ImageDimension from(String dimension)