/
dinruspro
/
tutorial
Обзор
Документация
Войти
/
dinruspro
/
tutorial
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
Draw05/main.cpp
26 строк
496 B
EnergonV
Уроки теперь тоже здесь!
09 янв 2024, 19:25
09 янв 2024, 19:25
4b3ebd6
Код
Авторство
О чём код?
#include <CtrlLib/CtrlLib.h> using namespace Upp; struct MyApp : TopWindow { Image image; void Paint(Draw& w) override { w.DrawRect(GetSize(), Cyan()); w.DrawImage(10, 10, image); } MyApp() { ImageDraw iw(100, 40); iw.Alpha().DrawRect(0, 0, 100, 40, GrayColor(0)); iw.Alpha().DrawEllipse(0, 0, 100, 40, GrayColor(255)); iw.DrawEllipse(0, 0, 100, 40, Yellow()); iw.DrawText(26, 10, "Image", Arial(16).Bold()); image = iw; } }; GUI_APP_MAIN { MyApp().Sizeable().Run(); }