16 lines
279 B
C++
16 lines
279 B
C++
#pragma once
|
|
|
|
namespace pdfengine {
|
|
|
|
struct ImageGeometry {
|
|
int width = 0;
|
|
int height = 0;
|
|
int bitsPerComponent = 8;
|
|
|
|
[[nodiscard]] bool isValid() const noexcept {
|
|
return width > 0 && height > 0 && bitsPerComponent > 0;
|
|
}
|
|
};
|
|
|
|
} // namespace pdfengine
|