Zivid C++ API 2.14.0+e4a0c4a9-1
|
Class describing a resolution with a width and a height. More...
#include <Zivid/Resolution.h>
Public Member Functions | |
ZIVID_UTILS_EXPORT | Resolution (size_t width, size_t height) |
Construct a Resolution from width and height. | |
ZIVID_UTILS_EXPORT size_t | width () const |
Get the width value of the resolution. | |
ZIVID_UTILS_EXPORT size_t | height () const |
Get the height value of the resolution. | |
ZIVID_UTILS_EXPORT size_t | size () const |
Get the size (area) that is the product of the width and height. | |
ZIVID_UTILS_EXPORT bool | operator== (const Resolution &other) const |
Comparison operator. | |
ZIVID_UTILS_EXPORT bool | operator!= (const Resolution &other) const |
Comparison operator. | |
ZIVID_UTILS_EXPORT std::string | toString () const |
Get a string representation of the resolution. | |
Class describing a resolution with a width and a height.
ZIVID_UTILS_EXPORT Zivid::Resolution::Resolution | ( | size_t | width, |
size_t | height ) |
Construct a Resolution from width and height.
ZIVID_UTILS_EXPORT size_t Zivid::Resolution::height | ( | ) | const |
Get the height value of the resolution.
ZIVID_UTILS_EXPORT bool Zivid::Resolution::operator!= | ( | const Resolution & | other | ) | const |
Comparison operator.
ZIVID_UTILS_EXPORT bool Zivid::Resolution::operator== | ( | const Resolution & | other | ) | const |
Comparison operator.
ZIVID_UTILS_EXPORT size_t Zivid::Resolution::size | ( | ) | const |
Get the size (area) that is the product of the width and height.
ZIVID_UTILS_EXPORT std::string Zivid::Resolution::toString | ( | ) | const |
Get a string representation of the resolution.
ZIVID_UTILS_EXPORT size_t Zivid::Resolution::width | ( | ) | const |
Get the width value of the resolution.