#pragma once #include #include #include #include #include #include namespace mbgl { class SpriteImage : private util::noncopyable { public: SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false); PremultipliedImage image; // Pixel ratio of the sprite image. const float pixelRatio; // Whether this image should be interpreted as a signed distance field icon. const bool sdf; float getWidth() const { return image.width / pixelRatio; } float getHeight() const { return image.height / pixelRatio; } }; } // namespace mbgl