Esempio n. 1
0
void PaintingPainter::CubicOp(const Pointf& p1, const Pointf& p2, const Pointf& p, bool rel)
{
	Put(PAINTING_CUBIC + rel);
	Putf(p1);
	Putf(p2);
	Putf(p);
}
Esempio n. 2
0
void PaintingPainter::DashOp(const Vector<double>& dash, double start)
{
	Put(PAINTING_DASH);
	Put32(dash.GetCount());
	for(int i = 0; i < dash.GetCount(); i++)
		Putf(dash[i]);
	Putf(start);
}
Esempio n. 3
0
void PaintingPainter::ArcOp(const Pointf& c, const Pointf& r, double angle, double sweep, bool rel)
{
	Put(PAINTING_ARC + rel);
	Putf(c);
	Putf(r);
	Putf(angle);
	Putf(sweep);
}
Esempio n. 4
0
void PaintingPainter::FillOp(const Pointf& f, const RGBA& color1, const RGBA& color2, const Xform2D& transsrc, int style)
{
	Put(PAINTING_FILL_RADIAL_X);
	Putf(f);
	Put(color1);
	Put(color2);
	Putf(transsrc);
	Put(style);
}
Esempio n. 5
0
void PaintingPainter::StrokeOp(double width, const Image& image,
                               const Xform2D& transsrc, dword flags)
{
	Put(PAINTING_STROKE_IMAGE);
	Putf(width);
	Putf(transsrc);
	Put(flags);
	data.Add(image);
}
Esempio n. 6
0
void PaintingPainter::SvgArcOp(const Pointf& r, double xangle, bool large, bool sweep, const Pointf& p, bool rel)
{
	Put(PAINTING_SVGARC + rel);
	Putf(r);
	Putf(xangle);
	Put(large);
	Put(sweep);
	Putf(p);
}
Esempio n. 7
0
void PaintingPainter::FillOp(const Pointf& p1, const RGBA& color1, const Pointf& p2,
                             const RGBA& color2, int style)
{
	Put(PAINTING_FILL_GRADIENT);
	Putf(p1);
	Put(color1);
	Putf(p2);
	Put(color2);
	Put(style);
}
Esempio n. 8
0
void PaintingPainter::StrokeOp(double width, const RGBA& color1, const RGBA& color2,
                               const Xform2D& transsrc, int style)
{
	Put(PAINTING_STROKE_GRADIENT_X);
	Putf(width);
	Put(color1);
	Put(color2);
	Putf(transsrc);
	Put(style);
}
Esempio n. 9
0
void PaintingPainter::StrokeOp(double width, const Pointf& p1, const RGBA& color1,
                               const Pointf& p2, const RGBA& color2, int style)
{
	Put(PAINTING_STROKE_GRADIENT);
	Putf(width);
	Putf(p1);
	Put(color1);
	Putf(p2);
	Put(color2);
	Put(style);
}
Esempio n. 10
0
void PaintingPainter::FillOp(const Pointf& f, const RGBA& color1,
                             const Pointf& p, double r, const RGBA& color2, int style)
{
	Put(PAINTING_FILL_RADIAL);
	Putf(f);
	Put(color1);
	Putf(p);
	Putf(r);
	Put(color2);
	Put(style);
}
Esempio n. 11
0
void PaintingPainter::StrokeOp(double width, const Pointf& f, const RGBA& color1,
                               const RGBA& color2, const Xform2D& transsrc, int style)
{
	Put(PAINTING_FILL_RADIAL_X);
	Putf(width);
	Putf(f);
	Put(color1);
	Put(color2);
	Putf(transsrc);
	Put(style);
}
Esempio n. 12
0
void PaintingPainter::StrokeOp(double width, const Pointf& f,
                               const RGBA& color1, const Pointf& p, double r,
                               const RGBA& color2, int style)
{
	Put(PAINTING_STROKE_RADIAL);
	Putf(width);
	Putf(f);
	Put(color1);
	Putf(p);
	Putf(r);
	Put(color2);
	Put(style);
}
Esempio n. 13
0
void PaintingPainter::TextOp(const Pointf& p, const wchar *text, Font fnt, int n, double *dx)
{
	Put(PAINTING_TEXT);
	Putf(p);
	Put32(n);
	Put((bool)dx);
	Put(fnt);
	for(int i = 0; i < n; i++) {
		Put32(text[i]);
		if(dx)
			Putf(dx[i]);
	}
}
Esempio n. 14
0
void PaintingPainter::CharacterOp(const Pointf& p, int ch, Font fnt)
{
	Put(PAINTING_CHARACTER);
	Putf(p);
	Put32(ch);
	Put(fnt);
}
Esempio n. 15
0
void PaintingPainter::FillOp(const Image& image, const Xform2D& transsrc, dword flags)
{
	Put(PAINTING_FILL_IMAGE);
	Putf(transsrc);
	Put(flags);
	data.Add(image);
}
Esempio n. 16
0
int main(void)
{
    int size = Sizef();
    int *arr = new int[size];
    int i;
    for (i = 0; i < size; i++)
        arr[i] = Getf(i);

    qsort(arr, size, sizeof(int), comp);

    for (i = 0; i < size; i++)
        Putf(arr[i], i);

    done();
    return 0;
}
Esempio n. 17
0
void PaintingPainter::LineOp(const Pointf& p, bool rel)
{
	Put(PAINTING_LINE + rel);
	Putf(p);
}
Esempio n. 18
0
void PaintingPainter::StrokeOp(double width, const RGBA& color)
{
	Put(PAINTING_STROKE_SOLID);
	Putf(width);
	Put(color);
}
Esempio n. 19
0
void PaintingPainter::OpacityOp(double o)
{
	Put(PAINTING_OPACITY);
	Putf(o);
}
Esempio n. 20
0
void PaintingPainter::BeginOnPathOp(double q, bool abs)
{
	Put(PAINTING_BEGINONPATH);
	Putf(q);
	Put(abs);
}
Esempio n. 21
0
void PaintingPainter::QuadraticOp(const Pointf& p, bool rel)
{
	Put(PAINTING_QUADRATIC_S + rel);
	Putf(p);
}
Esempio n. 22
0
void PaintingPainter::TransformOp(const Xform2D& m)
{
	Put(PAINTING_TRANSFORM);
	Putf(m);
}
Esempio n. 23
0
void PaintingPainter::MiterLimitOp(double l)
{
	Put(PAINTING_MITERLIMIT);
	Putf(l);
}
Esempio n. 24
0
void PaintingPainter::ColorStopOp(double pos, const RGBA& color)
{
	Put(PAINTING_COLORSTOP);
	Putf(pos);
	Put(color);
}
Esempio n. 25
0
void PaintingPainter::MoveOp(const Pointf& p, bool rel)
{
	Put(PAINTING_MOVE + rel);
	Putf(p);
}