Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Language
English











SourceForge.net Logo



iml

 

Demonstration of image list resources

 

 

image.cpp

 

#include <CtrlLib/CtrlLib.h>

 

using namespace Upp;

 

#define  IMAGEFILE  <iml/image.iml>

#define  IMAGECLASS MyImg

#include <Draw/iml.h>

 

struct App : TopWindow {

    void Paint(Draw& w)

    {

        Size sz = GetSize();

        w.DrawRect(sz, SGray);

        Size isz = MyImg::Smiley().GetSize();

        w.DrawImage((sz.cx - isz.cx) / 2, (sz.cy - isz.cy) / 2, MyImg::Smiley());

    }

 

    App()

    {

        Sizeable();

        BackPaint();

    }

};

 

GUI_APP_MAIN

{

    App().Run();

}

 

 

 

 

This page is also in català, čeština, deutsch, español, euskara, français, română, русский, 中文(简体) and 中文(繁體). Do you want to contribute?