Resolution Struct Reference

Width and height of an array. More...

Functions

 Resolution (size_t w_=0, size_t h_=0)
 
size_t area () const
 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()

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

Functions

◆ area()

size_t area ( ) const
inline

Returns the area of the image.

Returns
The number of pixels of the array.

◆ operator==()

bool operator== ( const Resolution that) const
inline

Tests if the given Resolution has the same properties.

Returns
True if the sizes matches.

◆ operator!=()

bool operator!= ( const Resolution that) const
inline

Tests if the given Resolution has different properties.

Returns
True if the sizes are not equal.

Variables

◆ width

◆ height