MYNT EYE SDK  v1.8
https://www.slightech.com/camera
mynteye::Resolution Struct Reference

Image resolution about width and height. More...

Public Member Functions

 Resolution (const std::int32_t &w=0, const std::int32_t &h=0)
 Constructor. More...
 
 ~Resolution ()
 Destructor. More...
 
std::int32_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...
 

Public Attributes

std::int32_t width
 image width in pixels
 
std::int32_t height
 image height in pixels
 

Detailed Description

Image resolution about width and height.

Constructor & Destructor Documentation

◆ Resolution()

mynteye::Resolution::Resolution ( const std::int32_t &  w = 0,
const std::int32_t &  h = 0 
)

Constructor.

◆ ~Resolution()

mynteye::Resolution::~Resolution ( )

Destructor.

Member Function Documentation

◆ Area()

std::int32_t mynteye::Resolution::Area ( ) const

Returns the area of the image.

Returns
The number of pixels of the image.

◆ operator!=()

bool mynteye::Resolution::operator!= ( const Resolution that) const

Tests if the given Resolution has different properties.

Parameters
thatthe given Resolution.
See also
operator==()
Returns
True if same, false different.

◆ operator==()

bool mynteye::Resolution::operator== ( const Resolution that) const

Tests if the given Resolution has the same properties.

Parameters
thatthe given Resolution.
See also
operator!=()
Returns
True if same, false different.