1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# This file is a Tcl script to test out XBM reading and writing.
# It is organized in the standard fashion for Tcl tests.
#
puts "img::xbm [package require img::xbm]"
test xbm-1.1 {} {
catch {image delete i}
image create photo i -file [file join $tcltest::testsDirectory folder.xbm]
i data -format xbm
} {#define InlineData_width 16
#define InlineData_height 12
static char InlineData_bits[] = {
0x78, 0x00,
0x86, 0x55,
0x02, 0x01,
0xff, 0x5f,
0x01, 0x30,
0x01, 0x50,
0x01, 0x10,
0x01, 0x50,
0x01, 0x10,
0x01, 0x50,
0x01, 0x30,
0xff, 0x1f};
}
|