Represents image size in pixels.
More...
#include <image_resolution.h>
Represents image size in pixels.
Definition at line 28 of file image_resolution.h.
◆ ImageResolution() [1/2]
ImageResolution::ImageResolution |
( |
| ) |
|
◆ ImageResolution() [2/2]
ImageResolution::ImageResolution |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
◆ operator==()
◆ operator!=()
◆ numPixels()
msize ImageResolution::numPixels |
( |
| ) |
const |
◆ megaPixels()
float ImageResolution::megaPixels |
( |
| ) |
const |
◆ getAspectRatio()
float ImageResolution::getAspectRatio |
( |
| ) |
const |
◆ getInvAspectRatio()
float ImageResolution::getInvAspectRatio |
( |
| ) |
const |
◆ fat()
bool ImageResolution::fat |
( |
| ) |
const |
- Returns
true
if the image width is greater than the height.
Definition at line 52 of file image_resolution.cpp.
◆ closedRectangle()
IntRectangle Beatmup::ImageResolution::closedRectangle |
( |
| ) |
const |
|
inline |
◆ halfOpenedRectangle()
IntRectangle Beatmup::ImageResolution::halfOpenedRectangle |
( |
| ) |
const |
|
inline |
◆ getWidth()
unsigned int Beatmup::ImageResolution::getWidth |
( |
| ) |
const |
|
inline |
◆ getHeight()
unsigned int Beatmup::ImageResolution::getHeight |
( |
| ) |
const |
|
inline |
◆ set()
void ImageResolution::set |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
◆ operator IntPoint()
Beatmup::ImageResolution::operator IntPoint |
( |
| ) |
const |
|
inline |
◆ width
unsigned int Beatmup::ImageResolution::width |
|
private |
◆ height
unsigned int Beatmup::ImageResolution::height |
|
private |
The documentation for this class was generated from the following files: