mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@12358 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8a10a0012d
commit
d338b73d64
3 changed files with 52 additions and 0 deletions
10
upptst/RasterOrientation/RasterOrientation.upp
Normal file
10
upptst/RasterOrientation/RasterOrientation.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
test.iml,
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
27
upptst/RasterOrientation/main.cpp
Normal file
27
upptst/RasterOrientation/main.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
#define IMAGECLASS TestImg
|
||||
#define IMAGEFILE <RasterOrientation/test.iml>
|
||||
#include <Draw/iml_header.h>
|
||||
|
||||
#define IMAGECLASS TestImg
|
||||
#define IMAGEFILE <RasterOrientation/test.iml>
|
||||
#include <Draw/iml_source.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct MyApp : TopWindow {
|
||||
virtual void Paint(Draw& w) {
|
||||
w.DrawRect(GetSize(), White());
|
||||
|
||||
for(int i = 0; i < TestImg::GetCount(); i++) {
|
||||
w.DrawImage(i * 128 + 10, 10, Magnify(TestImg::Get(i), 12, 12));
|
||||
w.DrawImage(i * 128 + 10, 160, FlipImage(Magnify(TestImg::Get(i), 12, 12), i));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyApp().Run();
|
||||
}
|
||||
15
upptst/RasterOrientation/test.iml
Normal file
15
upptst/RasterOrientation/test.iml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
PREMULTIPLIED
|
||||
IMAGE_ID(o1)
|
||||
IMAGE_ID(o2)
|
||||
IMAGE_ID(o3)
|
||||
IMAGE_ID(o4)
|
||||
IMAGE_ID(o5)
|
||||
IMAGE_ID(o6)
|
||||
IMAGE_ID(o7)
|
||||
IMAGE_ID(o8)
|
||||
|
||||
IMAGE_BEGIN_DATA
|
||||
IMAGE_DATA(120,156,59,192,202,192,193,128,4,254,147,136,177,233,165,153,121,7,200,116,44,93,29,9,19,67,119,236,128,56,130,88)
|
||||
IMAGE_DATA(140,43,100,7,165,163,15,112,48,176,50,176,3,89,236,228,57,130,144,227,168,202,199,229,88,154,88,70,132,39,73,10)
|
||||
IMAGE_DATA(217,65,233,72,92,142,29,148,209,15,227,3,0,154,24,229,193,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
|
||||
IMAGE_END_DATA(96, 8)
|
||||
Loading…
Add table
Add a link
Reference in a new issue