summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 11aeef8)
raw | patch | inline | side by side (parent: 11aeef8)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Oct 2006 08:12:24 +0000 (08:12 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Oct 2006 08:12:24 +0000 (08:12 +0000) |
src/helper/png-write.cpp | patch | blob | history |
index 44a977df7ff3180a876057100f31d33a4407e7c0..e14d94ddcb4a4c8df65e74711586c434245b99b8 100644 (file)
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
#include <sp-item.h>
#include <sp-root.h>
#include <sp-defs.h>
+#include "prefs-utils.h"
/* This is an example of how to use libpng to read and write PNG files.
* The file libpng.txt is much more verbose then this. If you have not
return FALSE;
}
+ // export with maximum blur rendering quality
+ int saved_quality = prefs_get_int_attribute ("options.blurquality", "value", 0);
+ prefs_set_int_attribute ("options.blurquality", "value", 2);
+
sp_document_ensure_up_to_date(doc);
/* Go to document coordinates */
/* Free Arena and ArenaItem */
nr_arena_item_unref(ebp.root);
nr_object_unref((NRObject *) arena);
+
+ // restore saved blur quality
+ prefs_set_int_attribute ("options.blurquality", "value", saved_quality);
+
return write_status;
}