OpenXLSX 1.9.1
Loading...
Searching...
No Matches
XLImageParser.hpp
Go to the documentation of this file.
1#ifndef OPENXLSX_XLIMAGEPARSER_HPP
2#define OPENXLSX_XLIMAGEPARSER_HPP
3
4#include "OpenXLSX-Exports.hpp"
5#include <cstdint>
6#include <string>
7
8namespace OpenXLSX
9{
10
12 {
13 uint32_t width{0};
14 uint32_t height{0};
15 std::string extension{""};
16 bool valid{false};
17 };
18
22 class OPENXLSX_EXPORT XLImageParser
23 {
24 public:
25 static XLImageSize parseDimensions(const std::string& path);
26 };
27
28} // namespace OpenXLSX
29
30#endif // OPENXLSX_XLIMAGEPARSER_HPP
Parses binary image headers (PNG, JPG, GIF) to extract width and height without external dependencies...
Definition XLImageParser.hpp:23
Definition IZipArchive.hpp:18
Definition XLImageParser.hpp:12
uint32_t width
Definition XLImageParser.hpp:13
std::string extension
Definition XLImageParser.hpp:15
uint32_t height
Definition XLImageParser.hpp:14
bool valid
Definition XLImageParser.hpp:16