Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
image-resolution.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Authors:
4 * Daniel Wagenaar <daw@caltech.edu>
5 *
6 * Copyright (C) 2012 Authors
7 *
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10
11
12#ifndef IMAGE_RESOLUTION_H
13#define IMAGE_RESOLUTION_H
14
16
18{
19public:
20 explicit ImageResolution(char const *fn);
21
22 bool ok() const { return ok_; }
23 double x() const { return x_; }
24 double y() const { return y_; }
25
26private:
27 bool ok_;
28 double x_;
29 double y_;
30
31 void readpng(char const *fn);
32 void readexif(char const *fn);
33 void readexiv(char const *fn);
34 void readjfif(char const *fn);
35 void readmagick(char const *fn);
36};
37
38} // namespace Inkscape::Extension::Internal
39
40#endif // IMAGE_RESOLUTION_H