png speed improvement draft
[swftools.git] / spec / imagematrix.spec.rb
1 require File.dirname(__FILE__) + '/spec_helper'
2
3 describe "pdf conversion" do
4
5   convert_file "imagematrix.pdf" do
6     pixel_at(22,239).should_be_of_color 0xff00ff
7     pixel_at(45,240).should_be_of_color 0x0000ff
8     pixel_at(72,239).should_be_of_color 0xffff00
9     pixel_at(98,236).should_be_of_color 0xff0000
10     pixel_at(99,312).should_be_of_color 0xffffff
11     pixel_at(80,312).should_be_of_color 0xff00ff
12     pixel_at(46,312).should_be_of_color 0x00ffff
13     pixel_at(26,314).should_be_of_color 0x0000ff
14     pixel_at(21,385).should_be_of_color 0xffff00
15     pixel_at(46,384).should_be_of_color 0xff00ff
16     pixel_at(71,384).should_be_of_color 0x00ff00
17     pixel_at(95,383).should_be_of_color 0x0000ff
18     pixel_at(97,459).should_be_of_color 0x00ffff
19     pixel_at(75,460).should_be_of_color 0x0000ff
20     pixel_at(50,460).should_be_of_color 0xffffff
21     pixel_at(23,461).should_be_of_color 0x00ff00
22     pixel_at(216,436).should_be_of_color 0xff00ff
23     pixel_at(213,415).should_be_of_color 0x0000ff
24     pixel_at(214,386).should_be_of_color 0xffff00
25     pixel_at(216,360).should_be_of_color 0x00ff00
26     pixel_at(234,364).should_be_of_color 0xffffff
27     pixel_at(235,388).should_be_of_color 0xff00ff
28     pixel_at(233,416).should_be_of_color 0x00ffff
29     pixel_at(237,431).should_be_of_color 0x0000ff
30     pixel_at(260,433).should_be_of_color 0xffff00
31     pixel_at(263,414).should_be_of_color 0xff00ff
32     pixel_at(261,393).should_be_of_color 0x00ff00
33     pixel_at(263,365).should_be_of_color 0x0000ff
34     pixel_at(291,363).should_be_of_color 0x00ffff
35     pixel_at(288,390).should_be_of_color 0x0000ff
36     pixel_at(285,412).should_be_of_color 0xffffff
37     pixel_at(285,437).should_be_of_color 0xff0000
38     pixel_at(286,287).should_be_of_color 0x00ffff
39     pixel_at(265,287).should_be_of_color 0x0000ff
40     pixel_at(244,290).should_be_of_color 0xffffff
41     pixel_at(219,290).should_be_of_color 0x00ff00
42     pixel_at(209,270).should_be_of_color 0xffff00
43     pixel_at(238,266).should_be_of_color 0xff00ff
44     pixel_at(266,265).should_be_of_color 0x00ff00
45     pixel_at(283,265).should_be_of_color 0x0000ff
46     pixel_at(289,236).should_be_of_color 0xffffff
47     pixel_at(264,237).should_be_of_color 0xff00ff
48     pixel_at(238,241).should_be_of_color 0x00ffff
49     pixel_at(216,235).should_be_of_color 0x0000ff
50     pixel_at(210,213).should_be_of_color 0xff00ff
51     pixel_at(238,213).should_be_of_color 0x0000ff
52     pixel_at(267,211).should_be_of_color 0xffff00
53     pixel_at(287,211).should_be_of_color 0xff0000
54     pixel_at(257,118).should_be_of_color 0x00ffff
55     pixel_at(262,96).should_be_of_color 0x0000ff
56     pixel_at(263,69).should_be_of_color 0xffffff
57     pixel_at(262,43).should_be_of_color 0xff0000
58     pixel_at(285,41).should_be_of_color 0xffff00
59     pixel_at(290,67).should_be_of_color 0xff00ff
60     pixel_at(288,92).should_be_of_color 0x00ff00
61     pixel_at(285,115).should_be_of_color 0x0000ff
62     pixel_at(312,120).should_be_of_color 0xffffff
63     pixel_at(311,94).should_be_of_color 0xff00ff
64     pixel_at(310,69).should_be_of_color 0x00ffff
65     pixel_at(311,45).should_be_of_color 0x0000ff
66     pixel_at(335,44).should_be_of_color 0xff00ff
67     pixel_at(335,67).should_be_of_color 0x0000ff
68     pixel_at(337,94).should_be_of_color 0xffff00
69     pixel_at(337,119).should_be_of_color 0x00ff00
70     pixel_at(367,310).should_be_of_color 0xff00ff
71     pixel_at(390,290).should_be_of_color 0x0000ff
72     pixel_at(406,277).should_be_of_color 0xffff00
73     pixel_at(426,260).should_be_of_color 0xff0000
74     pixel_at(438,280).should_be_of_color 0xffffff
75     pixel_at(418,296).should_be_of_color 0xff00ff
76     pixel_at(404,308).should_be_of_color 0x00ffff
77     pixel_at(380,324).should_be_of_color 0x0000ff
78     pixel_at(401,344).should_be_of_color 0xffff00
79     pixel_at(415,330).should_be_of_color 0xff00ff
80     pixel_at(434,314).should_be_of_color 0x00ff00
81     pixel_at(451,301).should_be_of_color 0x0000ff
82     pixel_at(472,316).should_be_of_color 0x00ffff
83     pixel_at(452,333).should_be_of_color 0x0000ff
84     pixel_at(434,349).should_be_of_color 0xffffff
85     pixel_at(415,362).should_be_of_color 0x00ff00
86     pixel_at(375,484).should_be_of_color 0xff00ff
87     pixel_at(360,518).should_be_of_color 0x0000ff
88     pixel_at(343,552).should_be_of_color 0xffff00
89     pixel_at(334,585).should_be_of_color 0x00ff00
90     pixel_at(379,574).should_be_of_color 0xffffff
91     pixel_at(392,538).should_be_of_color 0xff00ff
92     pixel_at(406,505).should_be_of_color 0x00ffff
93     pixel_at(420,472).should_be_of_color 0x0000ff
94     pixel_at(468,456).should_be_of_color 0xffff00
95     pixel_at(455,496).should_be_of_color 0xff00ff
96     pixel_at(438,527).should_be_of_color 0x00ff00
97     pixel_at(427,558).should_be_of_color 0x0000ff
98     pixel_at(515,443).should_be_of_color 0xff0000
99     pixel_at(504,480).should_be_of_color 0xffffff
100     pixel_at(489,512).should_be_of_color 0x0000ff
101     pixel_at(477,547).should_be_of_color 0x00ffff
102     pixel_at(520,238).should_be_of_color 0xff0000
103     pixel_at(503,222).should_be_of_color 0xffff00
104     pixel_at(486,204).should_be_of_color 0x0000ff
105     pixel_at(463,187).should_be_of_color 0xff00ff
106     pixel_at(478,168).should_be_of_color 0x0000ff
107     pixel_at(500,148).should_be_of_color 0xffff00
108     pixel_at(516,130).should_be_of_color 0x00ff00
109     pixel_at(536,146).should_be_of_color 0xffffff
110     pixel_at(517,165).should_be_of_color 0xff00ff
111     pixel_at(501,187).should_be_of_color 0x00ffff
112     pixel_at(518,198).should_be_of_color 0xff00ff
113     pixel_at(533,183).should_be_of_color 0x00ff00
114     pixel_at(551,163).should_be_of_color 0x0000ff
115     pixel_at(572,178).should_be_of_color 0x00ffff
116     pixel_at(553,197).should_be_of_color 0x0000ff
117     pixel_at(538,216).should_be_of_color 0xffffff
118   end
119 end