예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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);
}
예제 #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]);
	}
}
예제 #14
0
void PaintingPainter::CharacterOp(const Pointf& p, int ch, Font fnt)
{
	Put(PAINTING_CHARACTER);
	Putf(p);
	Put32(ch);
	Put(fnt);
}
예제 #15
0
void PaintingPainter::FillOp(const Image& image, const Xform2D& transsrc, dword flags)
{
	Put(PAINTING_FILL_IMAGE);
	Putf(transsrc);
	Put(flags);
	data.Add(image);
}
예제 #16
0
파일: prob02D6.cpp 프로젝트: jhnaldo/toy
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;
}
예제 #17
0
void PaintingPainter::LineOp(const Pointf& p, bool rel)
{
	Put(PAINTING_LINE + rel);
	Putf(p);
}
예제 #18
0
void PaintingPainter::StrokeOp(double width, const RGBA& color)
{
	Put(PAINTING_STROKE_SOLID);
	Putf(width);
	Put(color);
}
예제 #19
0
void PaintingPainter::OpacityOp(double o)
{
	Put(PAINTING_OPACITY);
	Putf(o);
}
예제 #20
0
void PaintingPainter::BeginOnPathOp(double q, bool abs)
{
	Put(PAINTING_BEGINONPATH);
	Putf(q);
	Put(abs);
}
예제 #21
0
void PaintingPainter::QuadraticOp(const Pointf& p, bool rel)
{
	Put(PAINTING_QUADRATIC_S + rel);
	Putf(p);
}
예제 #22
0
void PaintingPainter::TransformOp(const Xform2D& m)
{
	Put(PAINTING_TRANSFORM);
	Putf(m);
}
예제 #23
0
void PaintingPainter::MiterLimitOp(double l)
{
	Put(PAINTING_MITERLIMIT);
	Putf(l);
}
예제 #24
0
void PaintingPainter::ColorStopOp(double pos, const RGBA& color)
{
	Put(PAINTING_COLORSTOP);
	Putf(pos);
	Put(color);
}
예제 #25
0
void PaintingPainter::MoveOp(const Pointf& p, bool rel)
{
	Put(PAINTING_MOVE + rel);
	Putf(p);
}