Informació general
Exemples
Pantallas
Comparacions
Aplicacions
Descarregar
Documentation
"El Mercat"
Estat i Pla de treball
Preguntes més freqüents
Autors i Llicència
Fòrums
Finançament de l'U++
Cerca en aquesta web
Llengua
català











SourceForge.net Logo



ImageDraw

 

Creating raster images in the code

 

 

main.cpp

 

#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();

}

 

 

 

 

Aquesta pàgina també està en english, čeština, deutsch, español, euskara, français, română, русский, 中文(简体) i 中文(繁體). Vols col.laborar?