aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graphics/direct/Image.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-07 18:39:51 +0800
committercrupest <crupest@outlook.com>2022-05-07 18:39:51 +0800
commita465e2c410c1ae5098d2e073442219bb07a31b9d (patch)
treed60e6692e8dad6d4df2b9709819bf65f0f797422 /include/cru/win/graphics/direct/Image.h
parent23e68dc785d274327efeecb22cfc712c71cfbfc0 (diff)
downloadcru-a465e2c410c1ae5098d2e073442219bb07a31b9d.tar.gz
cru-a465e2c410c1ae5098d2e073442219bb07a31b9d.tar.bz2
cru-a465e2c410c1ae5098d2e073442219bb07a31b9d.zip
...
Diffstat (limited to 'include/cru/win/graphics/direct/Image.h')
-rw-r--r--include/cru/win/graphics/direct/Image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/win/graphics/direct/Image.h b/include/cru/win/graphics/direct/Image.h
index 0b51f350..bcf2386b 100644
--- a/include/cru/win/graphics/direct/Image.h
+++ b/include/cru/win/graphics/direct/Image.h
@@ -20,6 +20,8 @@ class CRU_WIN_GRAPHICS_DIRECT_API Direct2DImage : public DirectGraphicsResource,
std::unique_ptr<IImage> CreateWithRect(const Rect& rect) override;
+ std::unique_ptr<IPainter> CreatePainter() override;
+
const Microsoft::WRL::ComPtr<ID2D1Bitmap1>& GetD2DBitmap() const {
return d2d_bitmap_;
}