1 | /**
|
---|
2 | * This file is part of the mingw-w64 runtime package.
|
---|
3 | * No warranty is given; refer to the file DISCLAIMER within this package.
|
---|
4 | */
|
---|
5 |
|
---|
6 | import "objidl.idl";
|
---|
7 | import "wincodec.idl";
|
---|
8 | import "xpsobjectmodel.idl";
|
---|
9 |
|
---|
10 | interface IXpsRasterizerNotificationCallback;
|
---|
11 | interface IXpsRasterizer;
|
---|
12 | interface IXpsRasterizationFactory;
|
---|
13 | interface IXpsRasterizationFactory1;
|
---|
14 |
|
---|
15 | cpp_quote("#include <winapifamily.h>")
|
---|
16 | cpp_quote("")
|
---|
17 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
---|
18 |
|
---|
19 | typedef enum {
|
---|
20 | XPSRAS_RENDERING_MODE_ANTIALIASED = 0,
|
---|
21 | XPSRAS_RENDERING_MODE_ALIASED = 1
|
---|
22 | } XPSRAS_RENDERING_MODE;
|
---|
23 |
|
---|
24 | cpp_quote("#if NTDDI_VERSION >= 0x06020000")
|
---|
25 | typedef enum {
|
---|
26 | XPSRAS_PIXEL_FORMAT_32BPP_PBGRA_UINT_SRGB = 1,
|
---|
27 | XPSRAS_PIXEL_FORMAT_64BPP_PRGBA_HALF_SCRGB = 2,
|
---|
28 | XPSRAS_PIXEL_FORMAT_128BPP_PRGBA_FLOAT_SCRGB = 3
|
---|
29 | } XPSRAS_PIXEL_FORMAT;
|
---|
30 | cpp_quote("#endif")
|
---|
31 |
|
---|
32 | [object, local, uuid (9ab8fd0d-cb94-49c2-9cb0-97ec1d5469D2), pointer_default (unique)]
|
---|
33 | interface IXpsRasterizerNotificationCallback : IUnknown {
|
---|
34 | [local] HRESULT Continue ();
|
---|
35 | }
|
---|
36 |
|
---|
37 | [object, local, uuid (7567cfc8-c156-47a8-9dac-11a2ae5bdd6b), pointer_default (unique)]
|
---|
38 | interface IXpsRasterizer : IUnknown {
|
---|
39 | [local] HRESULT RasterizeRect ([in] INT x,[in] INT y,[in] INT width,[in] INT height, [in] IXpsRasterizerNotificationCallback *notificationCallback, [out, retval] IWICBitmap **bitmap);
|
---|
40 | [local] HRESULT SetMinimalLineWidth ([in] INT width);
|
---|
41 | }
|
---|
42 |
|
---|
43 | [object, local, uuid (e094808a-24c6-482b-a3a7-c21ac9B55f17), pointer_default (unique)]
|
---|
44 | interface IXpsRasterizationFactory : IUnknown {
|
---|
45 | [local] HRESULT CreateRasterizer ([in,optional] IXpsOMPage *xpsPage, [in] FLOAT DPI, [in] XPSRAS_RENDERING_MODE nonTextRenderingMode, [in] XPSRAS_RENDERING_MODE textRenderingMode, [out, retval] IXpsRasterizer **ppIXPSRasterizer);
|
---|
46 | }
|
---|
47 |
|
---|
48 | cpp_quote("#if NTDDI_VERSION >= 0x06020000")
|
---|
49 | [object, local, uuid (2d6e5f77-6414-4a1e-a8e0-d4194ce6a26f), pointer_default (unique)]
|
---|
50 | interface IXpsRasterizationFactory1 : IUnknown {
|
---|
51 | [local] HRESULT CreateRasterizer ([in, optional] IXpsOMPage *xpsPage, [in] FLOAT DPI, [in] XPSRAS_RENDERING_MODE nonTextRenderingMode, [in] XPSRAS_RENDERING_MODE textRenderingMode, [in] XPSRAS_PIXEL_FORMAT pixelFormat, [in, retval] IXpsRasterizer **ppIXPSRasterizer);
|
---|
52 | }
|
---|
53 | cpp_quote("#endif")
|
---|
54 |
|
---|
55 | cpp_quote("#endif")
|
---|