Class ImageSize


  • public class ImageSize
    extends Object
    This is a simple utility class to encapsulate information about the size of an image.
    • Constructor Detail

      • ImageSize

        public ImageSize()
        Creates a new ImageSize object with zero size.
      • ImageSize

        public ImageSize​(UInt32 numColumns,
                         UInt32 numRows)
        Creates a new ImageSize object with the given number of columns and rows.
        Parameters:
        numColumns - the number of columns
        numRows - the number of rows
    • Method Detail

      • getNumColumns

        public int getNumColumns()
        Returns the number of columns.
        Returns:
        the number of columns
      • getNumRows

        public int getNumRows()
        Returns the number of rows.
        Returns:
        the number of rows
      • getNumPixels

        public int getNumPixels()
        Returns the number of pixels.
        Returns:
        the number of pixels