diff options
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r-- | printing/emf_win.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h index fc947cb..459886e 100644 --- a/printing/emf_win.h +++ b/printing/emf_win.h @@ -10,6 +10,8 @@ #include "base/basictypes.h" +class FilePath; + namespace gfx { class Rect; } @@ -33,9 +35,15 @@ class Emf { // optional. bool CreateDc(HDC sibling, const RECT* rect); + // Similar to the above method but the metafile is backed by a file. + bool CreateFileBackedDc(HDC sibling, const RECT* rect, const FilePath& path); + // Load a EMF data stream. buffer contains EMF data. bool CreateFromData(const void* buffer, uint32 size); + // Load an EMF file. + bool CreateFromFile(const FilePath& metafile_path); + // TODO(maruel): CreateFromFile(). If ever used. Maybe users would like to // have the ability to save web pages to an EMF file? Afterward, it is easy to // convert to PDF or PS. |