diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-10-19 14:04:21 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-10-19 14:26:58 +0200 |
commit | e4ad5ed5839d5f78b76128814a3cf966122b0d71 (patch) | |
tree | bde74cc57f8cd18de4496dad5478b7c99cfc85b0 /include/svtools | |
parent | tdf#94908 : Autofilter ok button is blocked (diff) | |
download | core-e4ad5ed5839d5f78b76128814a3cf966122b0d71.tar.gz core-e4ad5ed5839d5f78b76128814a3cf966122b0d71.zip |
Writer image export: cmd. line, default to white background
This commit fixes the writer image export (jpeg, png) that didn't
work because the export pixel size was set to 0 by default. Now
the default is set to document size (which depends on system DPI).
When exporting to a PNG the background was transparent, which may
not be desired. The background color is now by default white and
can be changed for DocumentToGraphicRenderer, but the dialog or
command line don't support such an option - for now.
Change-Id: I16ffd3cd60c47b52768f43ae4c4c170fc821033b
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/DocumentToGraphicRenderer.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svtools/DocumentToGraphicRenderer.hxx b/include/svtools/DocumentToGraphicRenderer.hxx index 68cdf2a46425..09de00ea7b06 100644 --- a/include/svtools/DocumentToGraphicRenderer.hxx +++ b/include/svtools/DocumentToGraphicRenderer.hxx @@ -49,7 +49,8 @@ public: Size getDocumentSizeIn100mm( sal_Int32 aCurrentPage ); - Graphic renderToGraphic(sal_Int32 aCurrentPage, Size aDocumentSizePixel, Size aTargetSizePixel); + Graphic renderToGraphic(sal_Int32 aCurrentPage, Size aDocumentSizePixel, + Size aTargetSizePixel, Color aPageColor = COL_TRANSPARENT); }; #endif |