From 3e18f0681390878ae6754769fcdad3789a4d0abb Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 9 Dec 2020 19:24:34 +0530 Subject: [PATCH 3/5] include: Add ID2D1ImageBrush interface in d2d1_1.idl. Signed-off-by: Biswapriyo Nath --- include/d2d1_1.idl | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/include/d2d1_1.idl b/include/d2d1_1.idl index 64bd5fb..d9671fa 100644 --- a/include/d2d1_1.idl +++ b/include/d2d1_1.idl @@ -28,7 +28,6 @@ interface IWICImagingFactory; interface IWICColorContext; interface ID2D1ColorContext; interface ID2D1Effect; -interface ID2D1ImageBrush; interface ID2D1BitmapBrush1; cpp_quote("#ifndef __dwrite_h__") @@ -677,6 +676,39 @@ interface ID2D1PrintControl : IUnknown HRESULT Close(); } +[ + object, + uuid(fe9e984d-3f95-407c-b5db-cb94d4e8f87c), + local, +] +interface ID2D1ImageBrush : ID2D1Brush +{ + void SetImage( + [in] ID2D1Image *image + ); + void SetExtendModeX( + [in] D2D1_EXTEND_MODE extend_mode + ); + void SetExtendModeY( + [in] D2D1_EXTEND_MODE extend_mode + ); + void SetInterpolationMode( + [in] D2D1_INTERPOLATION_MODE interpolation_mode + ); + void SetSourceRectangle( + [in] const D2D1_RECT_F *rect + ); + void GetImage( + [out] ID2D1Image **image + ); + D2D1_EXTEND_MODE GetExtendModeX(); + D2D1_EXTEND_MODE GetExtendModeY(); + D2D1_INTERPOLATION_MODE GetInterpolationMode(); + void GetSourceRectangle( + [out] D2D1_RECT_F *rect + ); +} + [ object, uuid(e8f7fe7a-191c-466d-ad95-975678bda998), -- 2.29.2