blob: 0cce32ab9867a751b11b82e4e2e0de863b6b412c (
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
|
#include <mbgl/style/image.hpp>
#include <mbgl/style/image_impl.hpp>
#include <mbgl/util/exception.hpp>
namespace mbgl {
namespace style {
Image::Image(std::string id,
PremultipliedImage &&image,
const float pixelRatio,
bool sdf)
: impl(makeMutable<Impl>(std::move(id), std::move(image), pixelRatio, sdf)) {
}
std::string Image::getID() const {
return impl->id;
}
const PremultipliedImage& Image::getImage() const {
return impl->image;
}
bool Image::isSdf() const {
return impl->sdf;
}
float Image::getPixelRatio() const {
return impl->pixelRatio;
}
} // namespace style
} // namespace mbgl
|