Package rendering
Class Resolution
java.lang.Object
rendering.Resolution
public class Resolution
extends java.lang.Object
Represents the resolution of an image. That is some number of pixels by some
number of pixels.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Resolution(int columns, int rows)Construct a resolutionxbyypixels.Resolution(java.lang.String resolution)Construct a resolution from a string, such as "1920x1080". -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
columns
public final int columnsThe number of pixels in the width of the resolution. -
rows
public final int rowsThe number of pixels in the height of the resolution.
-
-
Constructor Details
-
Resolution
public Resolution(int columns, int rows)Construct a resolutionxbyypixels.- Parameters:
columns- The number of pixels in the resolution's width.rows- The number of pixels in the resolution's height.
-
Resolution
public Resolution(java.lang.String resolution)Construct a resolution from a string, such as "1920x1080".- Parameters:
resolution- The string representation of the resolution.
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-