摘要: 当需要设置位图的混合模式时,应该使用ID2D1DeviceContext而不是ID2D1RenderTarget。 代码如下: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <comdef.h> #include <d2d1.h> 阅读全文
posted @ 2021-02-02 18:02 strive-sun 阅读(672) 评论(0) 推荐(0)
摘要: 微软文档:Transforms 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 ID2D1SolidColorBrush* m_pOriginalShapeBrush, * m_pFillBrush,* m_pTransformedShapeBrush; 阅读全文
posted @ 2021-02-02 17:11 strive-sun 阅读(519) 评论(0) 推荐(0)