Пример #1
0
bool XARGenerator::OutputEllipseEntity(const Style& style, const Transformation& trans, const RectD& r)
{
	bool ok = true;

	if (r.IsUpright())
		ok = OutputUprightEllipse(r);
	else
		ok = OutputComplexEllipse(r);

	/***/ ok = m_pExporter->WriteZeroSizedRecord(TAG_DOWN);
	OutputStyles(style, trans, r, STYLE_FILL_ALL|STYLE_STROKE_ALL|STYLE_OPACITY);
	/***/ ok = m_pExporter->WriteZeroSizedRecord(TAG_UP);

	return ok;
}
Пример #2
0
bool XARGenerator::OutputRectEntity(const Style& style, const Transformation& trans, const RectD& r, double fRoundAxis)
{
	bool ok = true;

#if SVGDEBUG
	svgtrace(DBGTRACE_SHAPES, "rect: x1=%.2f y1=%.2f x2=%.2f y2=%.2f\n", r.p11.x, r.p11.y, r.p22.x, r.p22.y);
#endif

	if (r.IsUpright())
		OutputUprightRect(r, fRoundAxis);
	else
		OutputComplexRect(r, fRoundAxis);

	/***/ ok = m_pExporter->WriteZeroSizedRecord(TAG_DOWN);
	OutputStyles(style, trans, r, STYLE_FILL_ALL|STYLE_STROKE_ALL|STYLE_OPACITY);
	/***/ ok = m_pExporter->WriteZeroSizedRecord(TAG_UP);

	return ok;
}