summaryrefslogtreecommitdiff
path: root/platform/winrt/mupdfwinrt/mudocument.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-11-08 18:13:49 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2013-11-11 10:47:55 -0800
commit6afafa79e302e4d23b5c82182359619b59c64f6a (patch)
treef013fb415c1c7a1892c3b8f366e39671f293f033 /platform/winrt/mupdfwinrt/mudocument.h
parent7570e7fa8a40cb41db6a1ab14b225cf00c4f56f5 (diff)
downloadmupdf-6afafa79e302e4d23b5c82182359619b59c64f6a.tar.xz
DirectX printing added
After much research it was determined that use of the DirectX 2D methods is the proper way to add printing support to a Windows 8 application. This enables the pages to be rendered as they are requested by the print thread. This occurs for both the print preview screen as well as the print to the output device.
Diffstat (limited to 'platform/winrt/mupdfwinrt/mudocument.h')
-rw-r--r--platform/winrt/mupdfwinrt/mudocument.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/winrt/mupdfwinrt/mudocument.h b/platform/winrt/mupdfwinrt/mudocument.h
index eebe1fbe..c3356337 100644
--- a/platform/winrt/mupdfwinrt/mudocument.h
+++ b/platform/winrt/mupdfwinrt/mudocument.h
@@ -34,6 +34,8 @@ namespace mupdfwinrt
Point GetPageSize(int page_num);
Windows::Foundation::IAsyncOperation<InMemoryRandomAccessStream^>^
RenderPageAsync(int page_num, int width, int height, bool use_dlist);
+ int RenderPageBitmapSync(int page_num, int bmp_width, int bmp_height,
+ bool use_dlist, Array<unsigned char>^* bit_map);
Windows::Foundation::IAsyncOperationWithProgress<int, double>^
SearchDocumentWithProgressAsync(String^ textToFind, int dir,
int start_page, int num_pages);