예제 #1
0
void GPostscriptPort::DrawCircle (const GPoint &pt, const int radius)
{
    PostscriptStream << "newpath" << std::endl;
    PostscriptStream << pt.GetX() << " " << -pt.GetY() << " " << radius << " 0 360 arc" 		<< std::endl;
    PostscriptStream << "stroke" 										<< std::endl;
    PostscriptStream << std::endl;
}
예제 #2
0
void GPostscriptPort::FillCircle (const GPoint &pt, const int radius)
{
    PostscriptStream << "newpath" << std::endl;
    PostscriptStream << pt.GetX() << " " << -pt.GetY() << " " << radius << " 0 360 arc" 		<< std::endl;
	//PostscriptStream << "gsave" 										<< endl;
	//PostscriptStream << "0.90 setgray" 										<< endl;
    PostscriptStream << fill_r << " " << fill_g << " " <<  fill_b << " setrgbcolor" 										<< std::endl;
	
    PostscriptStream << "fill" 										<< std::endl;
	//PostscriptStream << "grestore" 										<< endl;
    PostscriptStream << std::endl;
}
예제 #3
0
void GPostscriptPort::DrawArc (const GPoint &pt, const int radius,
	const double startAngleDegrees, const double endAngleDegrees)
{
    PostscriptStream << "newpath" << std::endl;
	PostscriptStream << pt.GetX() << " " << -pt.GetY()
    	<< " " << radius
        << " " << (360.0 -startAngleDegrees)
        << " " << (360.0 - endAngleDegrees)
        << " arcn" 		<< std::endl;
    PostscriptStream << "stroke" 										<< std::endl;
    PostscriptStream << std::endl;
}