blob: 4abd86f1be356869c1350a349ecf59c6aebb7ce2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include <mbgl/util/image.hpp>
#include <memory>
namespace mbgl {
namespace style {
class Image {
public:
Image(PremultipliedImage&&, float pixelRatio, bool sdf = false);
PremultipliedImage& getImage() const;
// Pixel ratio of the sprite image.
float getPixelRatio() const;
// Whether this image should be interpreted as a signed distance field icon.
bool isSdf() const;
float getWidth() const;
float getHeight() const;
class Impl;
private:
const std::shared_ptr<Impl> impl;
};
} // namespace style
} // namespace mbgl
|