Lorenzo's postscript fill patch for bugs 2003834 and 1956732

This commit is contained in:
dickelbeck
2008-06-30 13:47:55 +00:00
parent 0cdcd78ba0
commit 44071acf07
11 changed files with 101 additions and 59 deletions
+18 -2
View File
@@ -68,9 +68,25 @@ bool CloseFileHPGL( FILE* plot_file )
return TRUE;
}
/************************************************************/
void PlotRectHPGL( wxPoint p1, wxPoint p2, int fill, int width )
/************************************************************/
{
char Line[256];
UserToDeviceCoordinate( p1 );
UserToDeviceCoordinate( p2 );
Plume_HPGL( 'U' );
sprintf( Line, "PA %d,%d;EA %d,%d;\n", p1.x, p1.y, p2.x, p2.y );
fputs( Line, PlotOutputFile );
Plume_HPGL( 'U' ); return;
}
/************************************************************/
void PlotCircle_HPGL( wxPoint centre, int diameter, int width )
void PlotCircleHPGL( wxPoint centre, int diameter, int fill, int width )
/************************************************************/
{
int rayon;
@@ -91,7 +107,7 @@ void PlotCircle_HPGL( wxPoint centre, int diameter, int width )
/********************************************************************/
void PlotArcHPGL( wxPoint centre, int StAngle, int EndAngle, int rayon, int width )
void PlotArcHPGL( wxPoint centre, int StAngle, int EndAngle, int rayon, int fill, int width )
/********************************************************************/
/* trace d'un arc de cercle: