首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > D2D1 图像资源操作 创建图层画刷

D2D1 图像资源操作 创建图层画刷

  • 资源大小:3.27 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: C/C++ D2D1 画刷 图层

资 源 简 介

#include #include // for IWICImagingFactory #include   #define SAFE_RELEASE(P) if(P){P->Release() ; P = NULL ;} ID2D1Factory* g_pD2DFactory = NULL ; // Direct2D factory ID2D1HwndRenderTarget* g_pRenderTarget = NULL; // Render target ID2D1SolidColorBrush* g_pBlackBrush = NULL ; // A black brush, reflect the line color ID2D1RadialGradientBrush* g_pRadialGradientBrush = NULL ; // Radial gradient brush ID2D1Layer* g_pLayer = NULL ; ID2D1Bitmap* g_pBitmap = NULL ; IWICImagingFactory* g_pWICFactory = NULL ; HWND g_Hwnd ; // Window handle // Creates a Direct2D bitmap from file HRESULT LoadBitmapFromFile(   ID2D1RenderTarget *pRenderTarget,   IWICImagingFactory *pIWICFactory,   PCWSTR uri,   UINT dest

文 件 列 表

OpacityMask_RadiusBrush.cpp
VIP VIP
0.196128s