Commit d156bf03 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1: Add the ID2D1BitmapBrush interface.

parent 71a27809
......@@ -33,6 +33,18 @@ typedef D2D_SIZE_U D2D1_SIZE_U;
typedef D2D_POINT_2U D2D1_POINT_2U;
typedef D2D_RECT_U D2D1_RECT_U;
enum
{
D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR = 0,
D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR = 1,
D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC = 2,
D2D1_INTERPOLATION_MODE_DEFINITION_MULTI_SAMPLE_LINEAR = 3,
D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC = 4,
D2D1_INTERPOLATION_MODE_DEFINITION_HIGH_QUALITY_CUBIC = 5,
D2D1_INTERPOLATION_MODE_DEFINITION_FANT = 6,
D2D1_INTERPOLATION_MODE_DEFINITION_MIPMAP_LINEAR = 7,
};
typedef enum D2D1_DEBUG_LEVEL
{
D2D1_DEBUG_LEVEL_NONE = 0,
......@@ -163,6 +175,21 @@ typedef enum D2D1_TEXT_ANTIALIAS_MODE
D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD = 0xffffffff,
} D2D1_TEXT_ANTIALIAS_MODE;
typedef enum D2D1_EXTEND_MODE
{
D2D1_EXTEND_MODE_CLAMP = 0,
D2D1_EXTEND_MODE_WRAP = 1,
D2D1_EXTEND_MODE_MIRROR = 2,
D2D1_EXTEND_MODE_FORCE_DWORD = 0xffffffff,
} D2D1_EXTEND_MODE;
typedef enum D2D1_BITMAP_INTERPOLATION_MODE
{
D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR = D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR,
D2D1_BITMAP_INTERPOLATION_MODE_LINEAR = D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR,
D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff,
} D2D1_BITMAP_INTERPOLATION_MODE;
typedef struct D2D1_BEZIER_SEGMENT
{
D2D1_POINT_2F point1;
......@@ -562,5 +589,32 @@ interface ID2D1Brush : ID2D1Resource
);
}
[
local,
object,
uuid(2cd906aa-12e2-11dc-9fed-001143a055f9)
]
interface ID2D1BitmapBrush : ID2D1Brush
{
void SetExtendModeX(
[in] D2D1_EXTEND_MODE mode
);
void SetExtendModeY(
[in] D2D1_EXTEND_MODE mode
);
void SetInterpolationMode(
[in] D2D1_BITMAP_INTERPOLATION_MODE mode
);
void SetBitmap(
[in] ID2D1Bitmap *bitmap
);
D2D1_EXTEND_MODE GetExtendModeX();
D2D1_EXTEND_MODE GetExtendModeY();
D2D1_BITMAP_INTERPOLATION_MODE GetInterpolationMode();
void GetBitmap(
[out] ID2D1Bitmap **bitmap
);
}
[local] HRESULT __stdcall D2D1CreateFactory(D2D1_FACTORY_TYPE factory_type, REFIID iid,
const D2D1_FACTORY_OPTIONS *factory_options, void **factory);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment