Files
pdf/engine/include/pdfengine/image_geometry.hpp
T
2026-08-01 16:19:11 +05:30

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