git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25767
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- PsPrintf( wxT("gsave\n newpath\n"
- "%d %d moveto\n"
- "%d %d lineto\n"
- "%d %d lineto\n"
- "%d %d lineto\n"
- "closepath clip newpath\n"),
+ PsPrintf( wxT("gsave\n newpath\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d lineto\n")
+ wxT("closepath clip newpath\n"),
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x+w), LogicalToDeviceY(y),
LogicalToDeviceX(x+w), LogicalToDeviceY(y+h),
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x+w), LogicalToDeviceY(y),
LogicalToDeviceX(x+w), LogicalToDeviceY(y+h),
- PsPrintf( wxT("newpath\n"
- "%d %d moveto\n"
- "%d %d lineto\n"
- "stroke\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d lineto\n")
+ wxT("stroke\n"),
LogicalToDeviceX(x1), LogicalToDeviceY(y1),
LogicalToDeviceX(x2), LogicalToDeviceY (y2) );
LogicalToDeviceX(x1), LogicalToDeviceY(y1),
LogicalToDeviceX(x2), LogicalToDeviceY (y2) );
- PsPrintf( wxT("newpath\n"
- "%d %d %d %d %d %d ellipse\n"
- "%d %d lineto\n"
- "closepath\n"
- "fill\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d %d %d %d ellipse\n")
+ wxT("%d %d lineto\n")
+ wxT("closepath\n")
+ wxT("fill\n"),
LogicalToDeviceX(xc), LogicalToDeviceY(yc), LogicalToDeviceXRel(radius), LogicalToDeviceYRel(radius), (wxCoord)alpha1, (wxCoord) alpha2,
LogicalToDeviceX(xc), LogicalToDeviceY(yc) );
LogicalToDeviceX(xc), LogicalToDeviceY(yc), LogicalToDeviceXRel(radius), LogicalToDeviceYRel(radius), (wxCoord)alpha1, (wxCoord) alpha2,
LogicalToDeviceX(xc), LogicalToDeviceY(yc) );
- PsPrintf( wxT("newpath\n"
- "%d %d %d %d %d %d ellipse\n"
- "%d %d lineto\n"
- "stroke\n"
- "fill\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d %d %d %d ellipse\n")
+ wxT("%d %d lineto\n")
+ wxT("stroke\n")
+ wxT("fill\n"),
LogicalToDeviceX(xc), LogicalToDeviceY(yc), LogicalToDeviceXRel(radius), LogicalToDeviceYRel(radius), (wxCoord)alpha1, (wxCoord) alpha2,
LogicalToDeviceX(xc), LogicalToDeviceY(yc) );
LogicalToDeviceX(xc), LogicalToDeviceY(yc), LogicalToDeviceXRel(radius), LogicalToDeviceYRel(radius), (wxCoord)alpha1, (wxCoord) alpha2,
LogicalToDeviceX(xc), LogicalToDeviceY(yc) );
- PsPrintf( wxT("newpath\n"
- "%d %d %d %d %d %d true ellipticarc\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d %d %d %d true ellipticarc\n"),
LogicalToDeviceX(x+w/2), LogicalToDeviceY(y+h/2),
LogicalToDeviceXRel(w/2), LogicalToDeviceYRel(h/2),
(wxCoord)sa, (wxCoord)ea );
LogicalToDeviceX(x+w/2), LogicalToDeviceY(y+h/2),
LogicalToDeviceXRel(w/2), LogicalToDeviceYRel(h/2),
(wxCoord)sa, (wxCoord)ea );
- PsPrintf( wxT("newpath\n"
- "%d %d %d %d %d %d false ellipticarc\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d %d %d %d false ellipticarc\n"),
LogicalToDeviceX(x+w/2), LogicalToDeviceY(y+h/2),
LogicalToDeviceXRel(w/2), LogicalToDeviceYRel(h/2),
(wxCoord)sa, (wxCoord)ea );
LogicalToDeviceX(x+w/2), LogicalToDeviceY(y+h/2),
LogicalToDeviceXRel(w/2), LogicalToDeviceYRel(h/2),
(wxCoord)sa, (wxCoord)ea );
- PsPrintf( wxT("newpath\n"
- "%d %d moveto\n"
- "%d %d lineto\n"
- "stroke\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d lineto\n")
+ wxT("stroke\n"),
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x+1), LogicalToDeviceY(y) );
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x+1), LogicalToDeviceY(y) );
- PsPrintf( wxT("newpath\n"
- "%d %d moveto\n"
- "%d %d lineto\n"
- "%d %d lineto\n"
- "%d %d lineto\n"
- "closepath\n"
- "fill\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d lineto\n")
+ wxT("closepath\n")
+ wxT("fill\n"),
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y + height),
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y + height),
- PsPrintf( wxT("newpath\n"
- "%d %d moveto\n"
- "%d %d lineto\n"
- "%d %d lineto\n"
- "%d %d lineto\n"
- "closepath\n"
- "stroke\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d lineto\n")
+ wxT("closepath\n")
+ wxT("stroke\n"),
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y + height),
LogicalToDeviceX(x), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y),
LogicalToDeviceX(x + width), LogicalToDeviceY(y + height),
SetBrush( m_brush );
/* Draw rectangle anticlockwise */
SetBrush( m_brush );
/* Draw rectangle anticlockwise */
- PsPrintf( wxT("newpath\n"
- "%d %d %d 90 180 arc\n"
- "%d %d moveto\n"
- "%d %d %d 180 270 arc\n"
- "%d %d lineto\n"
- "%d %d %d 270 0 arc\n"
- "%d %d lineto\n"
- "%d %d %d 0 90 arc\n"
- "%d %d lineto\n"
- "closepath\n"
- "fill\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d 90 180 arc\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d %d 180 270 arc\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d %d 270 0 arc\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d %d 0 90 arc\n")
+ wxT("%d %d lineto\n")
+ wxT("closepath\n")
+ wxT("fill\n"),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + rad), LogicalToDeviceXRel(rad),
LogicalToDeviceX(x), LogicalToDeviceY(y + rad),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + height - rad), LogicalToDeviceXRel(rad),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + rad), LogicalToDeviceXRel(rad),
LogicalToDeviceX(x), LogicalToDeviceY(y + rad),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + height - rad), LogicalToDeviceXRel(rad),
SetPen (m_pen);
/* Draw rectangle anticlockwise */
SetPen (m_pen);
/* Draw rectangle anticlockwise */
- PsPrintf( wxT("newpath\n"
- "%d %d %d 90 180 arc\n"
- "%d %d moveto\n"
- "%d %d %d 180 270 arc\n"
- "%d %d lineto\n"
- "%d %d %d 270 0 arc\n"
- "%d %d lineto\n"
- "%d %d %d 0 90 arc\n"
- "%d %d lineto\n"
- "closepath\n"
- "stroke\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d 90 180 arc\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d %d 180 270 arc\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d %d 270 0 arc\n")
+ wxT("%d %d lineto\n")
+ wxT("%d %d %d 0 90 arc\n")
+ wxT("%d %d lineto\n")
+ wxT("closepath\n")
+ wxT("stroke\n"),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + rad), LogicalToDeviceXRel(rad),
LogicalToDeviceX(x), LogicalToDeviceY(y + rad),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + height - rad), LogicalToDeviceXRel(rad),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + rad), LogicalToDeviceXRel(rad),
LogicalToDeviceX(x), LogicalToDeviceY(y + rad),
LogicalToDeviceX(x + rad), LogicalToDeviceY(y + height - rad), LogicalToDeviceXRel(rad),
- PsPrintf( wxT("newpath\n"
- "%d %d %d %d 0 360 ellipse\n"
- "fill\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d %d 0 360 ellipse\n")
+ wxT("fill\n"),
LogicalToDeviceX(x + width / 2), LogicalToDeviceY(y + height / 2),
LogicalToDeviceXRel(width / 2), LogicalToDeviceYRel(height / 2) );
LogicalToDeviceX(x + width / 2), LogicalToDeviceY(y + height / 2),
LogicalToDeviceXRel(width / 2), LogicalToDeviceYRel(height / 2) );
- PsPrintf( wxT("newpath\n"
- "%d %d %d %d 0 360 ellipse\n"
- "stroke\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d %d %d 0 360 ellipse\n")
+ wxT("stroke\n"),
LogicalToDeviceX(x + width / 2), LogicalToDeviceY(y + height / 2),
LogicalToDeviceXRel(width / 2), LogicalToDeviceYRel(height / 2) );
LogicalToDeviceX(x + width / 2), LogicalToDeviceY(y + height / 2),
LogicalToDeviceXRel(width / 2), LogicalToDeviceYRel(height / 2) );
wxCoord xx = LogicalToDeviceX(x);
wxCoord yy = LogicalToDeviceY(y + bitmap.GetHeight());
wxCoord xx = LogicalToDeviceX(x);
wxCoord yy = LogicalToDeviceY(y + bitmap.GetHeight());
- PsPrintf( wxT("/origstate save def\n"
- "20 dict begin\n"
- "/pix %d string def\n"
- "/grays %d string def\n"
- "/npixels 0 def\n"
- "/rgbindx 0 def\n"
- "%d %d translate\n"
- "%d %d scale\n"
- "%d %d 8\n"
- "[%d 0 0 %d 0 %d]\n"
- "{currentfile pix readhexstring pop}\n"
- "false 3 colorimage\n"),
+ PsPrintf( wxT("/origstate save def\n")
+ wxT("20 dict begin\n")
+ wxT("/pix %d string def\n")
+ wxT("/grays %d string def\n")
+ wxT("/npixels 0 def\n")
+ wxT("/rgbindx 0 def\n")
+ wxT("%d %d translate\n")
+ wxT("%d %d scale\n")
+ wxT("%d %d 8\n")
+ wxT("[%d 0 0 %d 0 %d]\n")
+ wxT("{currentfile pix readhexstring pop}\n")
+ wxT("false 3 colorimage\n"),
w, w, xx, yy, ww, hh, w, h, w, -h, h );
unsigned char* data = image.GetData();
w, w, xx, yy, ww, hh, w, h, w, -h, h );
unsigned char* data = image.GetData();
#endif
(double)(y1 + d) / 2;
#endif
(double)(y1 + d) / 2;
- PsPrintf( wxT("newpath\n"
- "%d %d moveto\n"
- "%d %d lineto\n"),
+ PsPrintf( wxT("newpath\n")
+ wxT("%d %d moveto\n")
+ wxT("%d %d lineto\n"),
LogicalToDeviceX((wxCoord)x1), LogicalToDeviceY((wxCoord)y1),
LogicalToDeviceX((wxCoord)x3), LogicalToDeviceY((wxCoord)y3) );
LogicalToDeviceX((wxCoord)x1), LogicalToDeviceY((wxCoord)y1),
LogicalToDeviceX((wxCoord)x3), LogicalToDeviceY((wxCoord)y3) );