Resolution Struct Reference

Width and height of an array. More...

General Functions

 Resolution (size_t w_=0, size_t h_=0)
 
size_t area ()
 Returns the area of the image. More...
 
bool operator== (const Resolution &that) const
 Tests if the given Resolution has the same properties. More...
 
bool operator!= (const Resolution &that) const
 Tests if the given Resolution has different properties. More...
 

Attributes

size_t width
 
size_t height
 

Detailed Description

Width and height of an array.

Constructor and Destructor

Resolution ( size_t  w_ = 0,
size_t  h_ = 0 
)
inline

Functions

size_t area ( )
inline

Returns the area of the image.

Returns
The number of pixels of the array.
bool operator== ( const Resolution that) const
inline

Tests if the given Resolution has the same properties.

Returns
True if the sizes matches.
bool operator!= ( const Resolution that) const
inline

Tests if the given Resolution has different properties.

Returns
True if the sizes are not equal.

Variables

size_t width
size_t height