Open TopPlay opened 6 years ago
both ID2D1DeviceContext & ID2D1RenderTarget exports CreateBitmapFromWicBitmap func, MSDN:
CreateBitmapFromWicBitmap | Overloaded.Creates a Direct2D bitmap by copying a WIC bitmap.
ID2D1DeviceContext = interface(ID2D1RenderTarget) ['{e8f7fe7a-191c-466d-ad95-975678bda998}'] function CreateBitmap(size: TD2D1_SIZE_U; sourceData: Pointer; pitch: UINT32; bitmapProperties: PD2D1_BITMAP_PROPERTIES1; out bitmap: ID2D1Bitmap1): HResult; stdcall; function CreateBitmapFromWicBitmap(wicBitmapSource: IWICBitmapSource; const bitmapProperties: TD2D1_BITMAP_PROPERTIES1; out bitmap: ID2D1Bitmap1): HResult; stdcall;**overload;**
both ID2D1DeviceContext & ID2D1RenderTarget exports CreateBitmapFromWicBitmap func, MSDN:
CreateBitmapFromWicBitmap | Overloaded.Creates a Direct2D bitmap by copying a WIC bitmap.
ID2D1DeviceContext = interface(ID2D1RenderTarget) ['{e8f7fe7a-191c-466d-ad95-975678bda998}'] function CreateBitmap(size: TD2D1_SIZE_U; sourceData: Pointer; pitch: UINT32; bitmapProperties: PD2D1_BITMAP_PROPERTIES1; out bitmap: ID2D1Bitmap1): HResult; stdcall; function CreateBitmapFromWicBitmap(wicBitmapSource: IWICBitmapSource; const bitmapProperties: TD2D1_BITMAP_PROPERTIES1; out bitmap: ID2D1Bitmap1): HResult; stdcall;**overload;**