20 lines
392 B
C++
20 lines
392 B
C++
#include "ImageJsObject.hpp"
|
|
|
|
#include <QImage>
|
|
|
|
|
|
ImageJsObject::ImageJsObject(const QString& path) {
|
|
this->_internal = std::make_unique<QImage>(path);
|
|
}
|
|
|
|
std::size_t ImageJsObject::getWidth() {
|
|
return this->_internal->width();
|
|
}
|
|
|
|
std::size_t ImageJsObject::getHeight() {
|
|
return this->_internal->height();
|
|
}
|
|
|
|
QSize ImageJsObject::getSize() {
|
|
return this->_internal->size();
|
|
}
|