]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/dcps.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPostScriptDC
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 This defines the wxWidgets Encapsulated PostScript device context, which
13 can write PostScript files on any platform. See wxDC for descriptions of
19 class wxPostScriptDC
: public wxDC
23 Constructs a PostScript printer device context from a wxPrintData
26 wxPostScriptDC(const wxPrintData
& printData
);
28 Constructor. @a output is an optional file for printing to, and if
29 @a interactive is @true a dialog box will be displayed for adjusting
30 various parameters. @a parent is the parent of the printer dialog box.
32 Use the wxDC::Ok() member to test whether the constructor was
33 successful in creating a usable device context.
35 See wxPrintData for various functions to set and get PostScript
38 @deprecated This constructor is deprecated.
40 wxPostScriptDC(const wxString
& output
,
41 bool interactive
= true,
45 Return resolution used in PostScript output.
49 static int GetResolution();
52 Set resolution (in pixels per inch) that will be used in PostScript
53 output. Default is 720ppi.
55 static void SetResolution(int ppi
);