ultimatepp/uppdev/PainterTest/main.cpp
cxl 5fbcfbde87 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@5846 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-02-20 19:33:50 +00:00

37 lines
613 B
C++

#include <CtrlLib/CtrlLib.h>
#include <Painter/Painter.h>
using namespace Upp;
struct PainterTest : public TopWindow {
virtual void Paint(Draw& w) {
DrawPainter p(w, GetSize()/*, MODE_NOAA*/);
p.Clear(White());
p.Text(0, 0, "A", Roman(50));
p.Fill(Black());
p.Translate(100, 100);
p.Rotate(1);
p.Fill(Blue());
p.Translate(200, -200);
p.Scale(1, -1);
p.Fill(Magenta());
p.Scale(1, -1);
p.Translate(-200, 200);
p.Rotate(-1);
p.Fill(Red());
p.Translate(-100, -100);
p.Fill(Green());
}
};
GUI_APP_MAIN
{
PainterTest().Run();
}