diff options
author | crupest <crupest@outlook.com> | 2022-05-09 22:53:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-09 22:53:44 +0800 |
commit | 3a60174667d7ff741ec4a90c3b5cfcc6fd2fd024 (patch) | |
tree | 567084b778fa2bd49b38491c3a513c08e25d08b8 /include | |
parent | 195007d4f00dd2c04a0f2859a8bfff7632a45530 (diff) | |
download | cru-3a60174667d7ff741ec4a90c3b5cfcc6fd2fd024.tar.gz cru-3a60174667d7ff741ec4a90c3b5cfcc6fd2fd024.tar.bz2 cru-3a60174667d7ff741ec4a90c3b5cfcc6fd2fd024.zip |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/cru/win/graphics/direct/ImageFactory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/cru/win/graphics/direct/ImageFactory.h b/include/cru/win/graphics/direct/ImageFactory.h index 923e682f..df1def0d 100644 --- a/include/cru/win/graphics/direct/ImageFactory.h +++ b/include/cru/win/graphics/direct/ImageFactory.h @@ -19,11 +19,12 @@ class CRU_WIN_GRAPHICS_DIRECT_API WinImageFactory public: std::unique_ptr<IImage> DecodeFromStream(io::Stream* stream) override; + void EncodeToStream(IImage* image, io::Stream* stream, ImageFormat format, + float quality) override; + std::unique_ptr<IImage> CreateBitmap(int width, int height) override; private: - DirectGraphicsFactory* graphics_factory_; - Microsoft::WRL::ComPtr<IWICImagingFactory> wic_imaging_factory_; }; } // namespace cru::platform::graphics::win::direct |