summaryrefslogtreecommitdiffstats
path: root/printing/emf_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r--printing/emf_win.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h
index b593e24..0800250 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -23,6 +23,11 @@ class Size;
namespace printing {
+// http://msdn2.microsoft.com/en-us/library/ms535522.aspx
+// Windows 2000/XP: When a page in a spooled file exceeds approximately 350
+// MB, it can fail to print and not send an error message.
+const size_t kMetafileMaxSize = 350*1024*1024;
+
// Simple wrapper class that manage an EMF data stream and its virtual HDC.
class PRINTING_EXPORT Emf : public Metafile {
public:
@@ -86,6 +91,13 @@ class PRINTING_EXPORT Emf : public Metafile {
return emf_;
}
+ // Returns true if metafile contains alpha blend.
+ bool IsAlphaBlendUsed() const;
+
+ // Returns new metafile with only bitmap created by playback of the current
+ // metafile. Returns NULL if fails.
+ Emf* RasterizeMetafile(int raster_area_in_pixels) const;
+
private:
FRIEND_TEST_ALL_PREFIXES(EmfTest, DC);
FRIEND_TEST_ALL_PREFIXES(EmfPrintingTest, PageBreak);