From f2872bfd97f9297b1446f1fd6595a32dc509f301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Neuwirth?= Date: Wed, 29 Apr 2009 04:10:10 +0200 Subject: Adding cpixmap.cpp, cpixmap.h and test fieles --- ue2/imgsynth2/test/input_yellow_man1_indexed8 | 10 ++++++++++ ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm | 22 ++++++++++++++++++++++ ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm | 24 ++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 ue2/imgsynth2/test/input_yellow_man1_indexed8 create mode 100644 ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm create mode 100644 ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm (limited to 'ue2/imgsynth2/test') diff --git a/ue2/imgsynth2/test/input_yellow_man1_indexed8 b/ue2/imgsynth2/test/input_yellow_man1_indexed8 new file mode 100644 index 0000000..997cd4f --- /dev/null +++ b/ue2/imgsynth2/test/input_yellow_man1_indexed8 @@ -0,0 +1,10 @@ +#in: test/yellow_man1_xpm_in.xpm +#out: test/yellow_man1_xpm_out.xpm +#ref: test/yellow_man1_xpm_ref.xpm + +read(XPM, test/yellow_man1_indexed8_in.xpm) + +#fillrect(0,3,6,5,0,255,0) +#fillrect(2,13,7,4,0,0,255) + +write(XPM, test/yellow_man1_indexed8_out.xpm) diff --git a/ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm b/ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm new file mode 100644 index 0000000..cbfe217 --- /dev/null +++ b/ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm @@ -0,0 +1,22 @@ +/* XPM */ +static char * yellow_man1_default_xpm[] = { +"9 17 2 1", +". c #000000", +"# c #FFF200", +".........", +".........", +"...###...", +"...###...", +"...###...", +"....#....", +"..#####..", +".#.###.#.", +".#.###.#.", +".#.###.#.", +".#.###.#.", +"...#.#...", +"...#.#...", +"...#.#...", +"...#.#...", +".........", +"........."}; diff --git a/ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm b/ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm new file mode 100644 index 0000000..57db73d --- /dev/null +++ b/ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char * yellow_man1_rgb24_ref_xpm[] = { +"9 17 4 1", +". c #000000", +"# c #FFF200", +"+ c #00FF00", +"@ c #0000FF", +".........", +".........", +"...###...", +"++++++...", +"++++++...", +"++++++...", +"++++++#..", +"++++++.#.", +".#.###.#.", +".#.###.#.", +".#.###.#.", +"...#.#...", +"...#.#...", +"..@@@@@@@", +"..@@@@@@@", +"..@@@@@@@", +"..@@@@@@@"}; -- cgit v1.2.3 From b0442de485dcb6328366d9b05a62af345e5fa39f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Neuwirth?= Date: Fri, 1 May 2009 14:58:58 +0200 Subject: Adding cpixelformat_indexd8.h and .cpp. Adding virtual methode getColorMode to CPixelFormat. Adding color table to CBitmap. Adding implementation of CPixmap --- ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ue2/imgsynth2/test') diff --git a/ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm b/ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm index cbfe217..6e5fa2c 100644 --- a/ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm +++ b/ue2/imgsynth2/test/yellow_man1_indexed8_in.xpm @@ -1,6 +1,6 @@ /* XPM */ static char * yellow_man1_default_xpm[] = { -"9 17 2 1", +"9 17 2 1 0 0 XPMEXT", ". c #000000", "# c #FFF200", ".........", @@ -19,4 +19,9 @@ static char * yellow_man1_default_xpm[] = { "...#.#...", "...#.#...", ".........", -"........."}; +"........." +"XPMEXT ext1 data1", +"XPMEXT ext2", +"data2_1", +"data2_2", +"XPMENDEXT"}; -- cgit v1.2.3