mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-02 16:22:40 -06:00
changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
commit
263ff5f895
2665 changed files with 642923 additions and 0 deletions
26
reference/ImageDraw/main.cpp
Normal file
26
reference/ImageDraw/main.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct App : TopWindow {
|
||||
Image img;
|
||||
|
||||
virtual void Paint(Draw& w) {
|
||||
w.DrawRect(GetSize(), SWhite);
|
||||
w.DrawImage(0, 0, img);
|
||||
}
|
||||
|
||||
App() {
|
||||
ImageDraw w(100, 100);
|
||||
w.DrawRect(0, 0, 100, 100, SGray);
|
||||
w.DrawEllipse(0, 0, 100, 100, SGreen);
|
||||
w.DrawText(0, 0, "ImageDraw!", Arial(13).Bold(), SYellow);
|
||||
img = w;
|
||||
Sizeable();
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
App().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue