ripxplore 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/doc/classes/AppleDosPic.html +20 -20
  2. data/doc/classes/AppleDosPic.src/M000015.html +20 -0
  3. data/doc/classes/AppleDosPic.src/M000016.html +18 -0
  4. data/doc/classes/AppleDosPic.src/M000017.html +18 -0
  5. data/doc/classes/AppleDosPic.src/M000018.html +18 -0
  6. data/doc/classes/AppleHiResPic.html +45 -32
  7. data/doc/classes/AppleHiResPic.src/M000001.html +18 -0
  8. data/doc/classes/AppleHiResPic.src/M000002.html +18 -0
  9. data/doc/classes/AppleHiResPic.src/M000003.html +18 -0
  10. data/doc/classes/AppleHiResPic.src/M000004.html +53 -0
  11. data/doc/classes/AppleHiResPic.src/M000005.html +18 -0
  12. data/doc/classes/AppleHiResPic.src/M000006.html +18 -0
  13. data/doc/classes/AppleHiResPic.src/M000007.html +18 -0
  14. data/doc/classes/NADOLPic.html +10 -10
  15. data/doc/classes/NADOLPic.src/M000013.html +20 -0
  16. data/doc/classes/NADOLPic.src/M000014.html +18 -0
  17. data/doc/classes/PascalPic.html +10 -10
  18. data/doc/classes/PascalPic.src/M000011.html +20 -0
  19. data/doc/classes/PascalPic.src/M000012.html +18 -0
  20. data/doc/classes/ProDosBinPic.html +15 -15
  21. data/doc/classes/ProDosBinPic.src/M000008.html +20 -0
  22. data/doc/classes/ProDosBinPic.src/M000009.html +18 -0
  23. data/doc/classes/ProDosBinPic.src/M000010.html +18 -0
  24. data/doc/classes/RipXplore.html +1 -1
  25. data/doc/created.rid +1 -1
  26. data/doc/files/lib/RipXplore_rb.html +2 -2
  27. data/doc/files/lib/native_file_types/apple2/AppleHiResPic_rb.html +1 -1
  28. data/doc/fr_class_index.html +0 -9
  29. data/doc/fr_file_index.html +0 -7
  30. data/doc/fr_method_index.html +18 -54
  31. data/doc/index.html +1 -1
  32. data/lib/RipXplore.rb +1 -1
  33. data/lib/native_file_types/apple2/AppleHiResPic.rb +3 -0
  34. data/test/testlog.txt +226 -60059
  35. metadata +19 -1
@@ -88,10 +88,10 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000051">file_system_file_types</a>&nbsp;&nbsp;
92
- <a href="#M000053">header_length</a>&nbsp;&nbsp;
93
- <a href="#M000052">load_address</a>&nbsp;&nbsp;
94
- <a href="#M000054">unpacked_picture_bytes</a>&nbsp;&nbsp;
91
+ <a href="#M000015">file_system_file_types</a>&nbsp;&nbsp;
92
+ <a href="#M000017">header_length</a>&nbsp;&nbsp;
93
+ <a href="#M000016">load_address</a>&nbsp;&nbsp;
94
+ <a href="#M000018">unpacked_picture_bytes</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -113,12 +113,12 @@
113
113
  <div id="methods">
114
114
  <h3 class="section-bar">Public Class methods</h3>
115
115
 
116
- <div id="method-M000051" class="method-detail">
117
- <a name="M000051"></a>
116
+ <div id="method-M000015" class="method-detail">
117
+ <a name="M000015"></a>
118
118
 
119
119
  <div class="method-heading">
120
- <a href="AppleDosPic.src/M000051.html" target="Code" class="method-signature"
121
- onclick="popupCode('AppleDosPic.src/M000051.html');return false;">
120
+ <a href="AppleDosPic.src/M000015.html" target="Code" class="method-signature"
121
+ onclick="popupCode('AppleDosPic.src/M000015.html');return false;">
122
122
  <span class="method-name">file_system_file_types</span><span class="method-args">()</span>
123
123
  </a>
124
124
  </div>
@@ -127,12 +127,12 @@
127
127
  </div>
128
128
  </div>
129
129
 
130
- <div id="method-M000052" class="method-detail">
131
- <a name="M000052"></a>
130
+ <div id="method-M000016" class="method-detail">
131
+ <a name="M000016"></a>
132
132
 
133
133
  <div class="method-heading">
134
- <a href="AppleDosPic.src/M000052.html" target="Code" class="method-signature"
135
- onclick="popupCode('AppleDosPic.src/M000052.html');return false;">
134
+ <a href="AppleDosPic.src/M000016.html" target="Code" class="method-signature"
135
+ onclick="popupCode('AppleDosPic.src/M000016.html');return false;">
136
136
  <span class="method-name">load_address</span><span class="method-args">(contents)</span>
137
137
  </a>
138
138
  </div>
@@ -143,12 +143,12 @@
143
143
 
144
144
  <h3 class="section-bar">Public Instance methods</h3>
145
145
 
146
- <div id="method-M000053" class="method-detail">
147
- <a name="M000053"></a>
146
+ <div id="method-M000017" class="method-detail">
147
+ <a name="M000017"></a>
148
148
 
149
149
  <div class="method-heading">
150
- <a href="AppleDosPic.src/M000053.html" target="Code" class="method-signature"
151
- onclick="popupCode('AppleDosPic.src/M000053.html');return false;">
150
+ <a href="AppleDosPic.src/M000017.html" target="Code" class="method-signature"
151
+ onclick="popupCode('AppleDosPic.src/M000017.html');return false;">
152
152
  <span class="method-name">header_length</span><span class="method-args">()</span>
153
153
  </a>
154
154
  </div>
@@ -157,12 +157,12 @@
157
157
  </div>
158
158
  </div>
159
159
 
160
- <div id="method-M000054" class="method-detail">
161
- <a name="M000054"></a>
160
+ <div id="method-M000018" class="method-detail">
161
+ <a name="M000018"></a>
162
162
 
163
163
  <div class="method-heading">
164
- <a href="AppleDosPic.src/M000054.html" target="Code" class="method-signature"
165
- onclick="popupCode('AppleDosPic.src/M000054.html');return false;">
164
+ <a href="AppleDosPic.src/M000018.html" target="Code" class="method-signature"
165
+ onclick="popupCode('AppleDosPic.src/M000018.html');return false;">
166
166
  <span class="method-name">unpacked_picture_bytes</span><span class="method-args">()</span>
167
167
  </a>
168
168
  </div>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>file_system_file_types (AppleDosPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 118</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">file_system_file_types</span>
15
+ {
16
+ <span class="ruby-constant">AppleDos</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value">0x04</span>
17
+ }
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>load_address (AppleDosPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 124</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_address</span>(<span class="ruby-identifier">contents</span>)
15
+ <span class="ruby-identifier">contents</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">+</span><span class="ruby-identifier">contents</span>[<span class="ruby-value">1</span>]<span class="ruby-operator">*</span><span class="ruby-value">256</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>header_length (AppleDosPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 128</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">header_length</span>
15
+ <span class="ruby-value">4</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>unpacked_picture_bytes (AppleDosPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 131</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unpacked_picture_bytes</span>
15
+ <span class="ruby-identifier">data_without_header</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -65,9 +65,7 @@
65
65
  <tr class="top-aligned-row">
66
66
  <td><strong>Parent:</strong></td>
67
67
  <td>
68
- <a href="NativeFileType.html">
69
68
  NativeFileType
70
- </a>
71
69
  </td>
72
70
  </tr>
73
71
  </table>
@@ -94,12 +92,13 @@ generic class for a HI-RES picture
94
92
  <h3 class="section-bar">Methods</h3>
95
93
 
96
94
  <div class="name-list">
97
- <a href="#M000012">file_system_file_types</a>&nbsp;&nbsp;
98
- <a href="#M000013">matching_score</a>&nbsp;&nbsp;
99
- <a href="#M000017">picture_format</a>&nbsp;&nbsp;
100
- <a href="#M000016">picture_height</a>&nbsp;&nbsp;
101
- <a href="#M000015">picture_width</a>&nbsp;&nbsp;
102
- <a href="#M000014">to_picture</a>&nbsp;&nbsp;
95
+ <a href="#M000001">file_system_file_types</a>&nbsp;&nbsp;
96
+ <a href="#M000003">matching_score</a>&nbsp;&nbsp;
97
+ <a href="#M000007">picture_format</a>&nbsp;&nbsp;
98
+ <a href="#M000006">picture_height</a>&nbsp;&nbsp;
99
+ <a href="#M000005">picture_width</a>&nbsp;&nbsp;
100
+ <a href="#M000002">scanline_offsets</a>&nbsp;&nbsp;
101
+ <a href="#M000004">to_picture</a>&nbsp;&nbsp;
103
102
  </div>
104
103
  </div>
105
104
 
@@ -169,12 +168,12 @@ generic class for a HI-RES picture
169
168
  <div id="methods">
170
169
  <h3 class="section-bar">Public Class methods</h3>
171
170
 
172
- <div id="method-M000012" class="method-detail">
173
- <a name="M000012"></a>
171
+ <div id="method-M000001" class="method-detail">
172
+ <a name="M000001"></a>
174
173
 
175
174
  <div class="method-heading">
176
- <a href="AppleHiResPic.src/M000012.html" target="Code" class="method-signature"
177
- onclick="popupCode('AppleHiResPic.src/M000012.html');return false;">
175
+ <a href="AppleHiResPic.src/M000001.html" target="Code" class="method-signature"
176
+ onclick="popupCode('AppleHiResPic.src/M000001.html');return false;">
178
177
  <span class="method-name">file_system_file_types</span><span class="method-args">()</span>
179
178
  </a>
180
179
  </div>
@@ -186,12 +185,12 @@ should be a subclass for each file system
186
185
  </div>
187
186
  </div>
188
187
 
189
- <div id="method-M000013" class="method-detail">
190
- <a name="M000013"></a>
188
+ <div id="method-M000003" class="method-detail">
189
+ <a name="M000003"></a>
191
190
 
192
191
  <div class="method-heading">
193
- <a href="AppleHiResPic.src/M000013.html" target="Code" class="method-signature"
194
- onclick="popupCode('AppleHiResPic.src/M000013.html');return false;">
192
+ <a href="AppleHiResPic.src/M000003.html" target="Code" class="method-signature"
193
+ onclick="popupCode('AppleHiResPic.src/M000003.html');return false;">
195
194
  <span class="method-name">matching_score</span><span class="method-args">()</span>
196
195
  </a>
197
196
  </div>
@@ -200,14 +199,28 @@ should be a subclass for each file system
200
199
  </div>
201
200
  </div>
202
201
 
202
+ <div id="method-M000002" class="method-detail">
203
+ <a name="M000002"></a>
204
+
205
+ <div class="method-heading">
206
+ <a href="AppleHiResPic.src/M000002.html" target="Code" class="method-signature"
207
+ onclick="popupCode('AppleHiResPic.src/M000002.html');return false;">
208
+ <span class="method-name">scanline_offsets</span><span class="method-args">()</span>
209
+ </a>
210
+ </div>
211
+
212
+ <div class="method-description">
213
+ </div>
214
+ </div>
215
+
203
216
  <h3 class="section-bar">Public Instance methods</h3>
204
217
 
205
- <div id="method-M000017" class="method-detail">
206
- <a name="M000017"></a>
218
+ <div id="method-M000007" class="method-detail">
219
+ <a name="M000007"></a>
207
220
 
208
221
  <div class="method-heading">
209
- <a href="AppleHiResPic.src/M000017.html" target="Code" class="method-signature"
210
- onclick="popupCode('AppleHiResPic.src/M000017.html');return false;">
222
+ <a href="AppleHiResPic.src/M000007.html" target="Code" class="method-signature"
223
+ onclick="popupCode('AppleHiResPic.src/M000007.html');return false;">
211
224
  <span class="method-name">picture_format</span><span class="method-args">()</span>
212
225
  </a>
213
226
  </div>
@@ -216,12 +229,12 @@ should be a subclass for each file system
216
229
  </div>
217
230
  </div>
218
231
 
219
- <div id="method-M000016" class="method-detail">
220
- <a name="M000016"></a>
232
+ <div id="method-M000006" class="method-detail">
233
+ <a name="M000006"></a>
221
234
 
222
235
  <div class="method-heading">
223
- <a href="AppleHiResPic.src/M000016.html" target="Code" class="method-signature"
224
- onclick="popupCode('AppleHiResPic.src/M000016.html');return false;">
236
+ <a href="AppleHiResPic.src/M000006.html" target="Code" class="method-signature"
237
+ onclick="popupCode('AppleHiResPic.src/M000006.html');return false;">
225
238
  <span class="method-name">picture_height</span><span class="method-args">()</span>
226
239
  </a>
227
240
  </div>
@@ -230,12 +243,12 @@ should be a subclass for each file system
230
243
  </div>
231
244
  </div>
232
245
 
233
- <div id="method-M000015" class="method-detail">
234
- <a name="M000015"></a>
246
+ <div id="method-M000005" class="method-detail">
247
+ <a name="M000005"></a>
235
248
 
236
249
  <div class="method-heading">
237
- <a href="AppleHiResPic.src/M000015.html" target="Code" class="method-signature"
238
- onclick="popupCode('AppleHiResPic.src/M000015.html');return false;">
250
+ <a href="AppleHiResPic.src/M000005.html" target="Code" class="method-signature"
251
+ onclick="popupCode('AppleHiResPic.src/M000005.html');return false;">
239
252
  <span class="method-name">picture_width</span><span class="method-args">()</span>
240
253
  </a>
241
254
  </div>
@@ -244,12 +257,12 @@ should be a subclass for each file system
244
257
  </div>
245
258
  </div>
246
259
 
247
- <div id="method-M000014" class="method-detail">
248
- <a name="M000014"></a>
260
+ <div id="method-M000004" class="method-detail">
261
+ <a name="M000004"></a>
249
262
 
250
263
  <div class="method-heading">
251
- <a href="AppleHiResPic.src/M000014.html" target="Code" class="method-signature"
252
- onclick="popupCode('AppleHiResPic.src/M000014.html');return false;">
264
+ <a href="AppleHiResPic.src/M000004.html" target="Code" class="method-signature"
265
+ onclick="popupCode('AppleHiResPic.src/M000004.html');return false;">
253
266
  <span class="method-name">to_picture</span><span class="method-args">()</span>
254
267
  </a>
255
268
  </div>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>file_system_file_types (AppleHiResPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 12</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">file_system_file_types</span>
15
+ {}
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>scanline_offsets (AppleHiResPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 52</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">scanline_offsets</span>
15
+ <span class="ruby-ivar">@@scanline_offsets</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>matching_score (AppleHiResPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 56</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">matching_score</span>
15
+ [<span class="ruby-constant">AppleBinary</span>.<span class="ruby-identifier">matching_score</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>,<span class="ruby-constant">NADOLFile</span>.<span class="ruby-identifier">matching_score</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>].<span class="ruby-identifier">max</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>to_picture (AppleHiResPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 60</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_picture</span>
15
+ <span class="ruby-identifier">buffer</span>=<span class="ruby-identifier">unpacked_picture_bytes</span>
16
+ <span class="ruby-identifier">canvas</span> = <span class="ruby-constant">PNG</span><span class="ruby-operator">::</span><span class="ruby-constant">Canvas</span>.<span class="ruby-identifier">new</span> <span class="ruby-constant">HGR_COLS</span>, <span class="ruby-constant">HGR_ROWS</span>, <span class="ruby-constant">PNG</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span><span class="ruby-operator">::</span><span class="ruby-constant">Black</span>
17
+ <span class="ruby-constant">HGR_ROWS</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">y</span><span class="ruby-operator">|</span>
18
+ <span class="ruby-identifier">last_bit_set</span>=<span class="ruby-keyword kw">false</span>
19
+ <span class="ruby-value">40</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x_byte</span><span class="ruby-operator">|</span>
20
+ <span class="ruby-identifier">offset</span>=<span class="ruby-ivar">@@scanline_offsets</span>[<span class="ruby-identifier">y</span>]<span class="ruby-operator">+</span><span class="ruby-identifier">x_byte</span>
21
+ <span class="ruby-identifier">current_byte</span>=<span class="ruby-identifier">buffer</span>[<span class="ruby-identifier">offset</span>]
22
+ <span class="ruby-identifier">current_byte</span>=<span class="ruby-value">0</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current_byte</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-comment cmt">#if we overrun the buffer then assume it's black</span>
23
+ <span class="ruby-value">7</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x_bit</span><span class="ruby-operator">|</span>
24
+ <span class="ruby-identifier">x</span>=<span class="ruby-identifier">x_byte</span><span class="ruby-operator">*</span><span class="ruby-value">7</span><span class="ruby-operator">+</span><span class="ruby-identifier">x_bit</span>
25
+ <span class="ruby-identifier">bit_set</span>=((<span class="ruby-identifier">current_byte</span> <span class="ruby-operator">&amp;</span> (<span class="ruby-value">2</span><span class="ruby-operator">**</span><span class="ruby-identifier">x_bit</span>))<span class="ruby-operator">&gt;</span><span class="ruby-value">0</span>)
26
+ <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">bit_set</span>) <span class="ruby-keyword kw">then</span>
27
+ <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">last_bit_set</span>) <span class="ruby-keyword kw">then</span>
28
+ <span class="ruby-comment cmt">#adjacent pixels should both be white</span>
29
+ <span class="ruby-constant">AppleHiResPic</span>.<span class="ruby-identifier">set_pixel</span>(<span class="ruby-identifier">canvas</span>,<span class="ruby-identifier">x</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>,<span class="ruby-identifier">y</span>,<span class="ruby-constant">HGR_WHITE</span>)
30
+ <span class="ruby-constant">AppleHiResPic</span>.<span class="ruby-identifier">set_pixel</span>(<span class="ruby-identifier">canvas</span>,<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-constant">HGR_WHITE</span>)
31
+ <span class="ruby-keyword kw">else</span>
32
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current_byte</span><span class="ruby-operator">&gt;=</span><span class="ruby-value">0x80</span> <span class="ruby-keyword kw">then</span>
33
+ <span class="ruby-identifier">pallete</span>=[<span class="ruby-constant">HGR_BLUE</span>,<span class="ruby-constant">HGR_ORANGE</span>]
34
+ <span class="ruby-keyword kw">else</span>
35
+ <span class="ruby-identifier">pallete</span>=[<span class="ruby-constant">HGR_VIOLET</span>,<span class="ruby-constant">HGR_GREEN</span>]
36
+ <span class="ruby-keyword kw">end</span>
37
+ <span class="ruby-identifier">this_pixel_colour</span>=<span class="ruby-identifier">pallete</span>[<span class="ruby-identifier">x</span><span class="ruby-operator">%</span><span class="ruby-value">2</span>]
38
+ <span class="ruby-constant">AppleHiResPic</span>.<span class="ruby-identifier">set_pixel</span>(<span class="ruby-identifier">canvas</span>,<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">this_pixel_colour</span>)
39
+ <span class="ruby-constant">AppleHiResPic</span>.<span class="ruby-identifier">set_pixel</span>(<span class="ruby-identifier">canvas</span>,<span class="ruby-identifier">x</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">this_pixel_colour</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">x</span><span class="ruby-operator">&gt;=</span><span class="ruby-constant">HGR_COLS</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>
40
+ <span class="ruby-keyword kw">end</span>
41
+ <span class="ruby-keyword kw">end</span>
42
+
43
+ <span class="ruby-identifier">last_bit_set</span>=<span class="ruby-identifier">bit_set</span>
44
+ <span class="ruby-keyword kw">end</span>
45
+ <span class="ruby-keyword kw">end</span>
46
+ <span class="ruby-keyword kw">end</span>
47
+
48
+ <span class="ruby-identifier">png</span> = <span class="ruby-constant">PNG</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">canvas</span>
49
+ <span class="ruby-identifier">result</span>=<span class="ruby-identifier">png</span>.<span class="ruby-identifier">raw_bytes</span>
50
+ <span class="ruby-identifier">result</span>
51
+ <span class="ruby-keyword kw">end</span></pre>
52
+ </body>
53
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>picture_width (AppleHiResPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 99</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">picture_width</span>
15
+ <span class="ruby-constant">HGR_COLS</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>picture_height (AppleHiResPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 102</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">picture_height</span>
15
+ <span class="ruby-constant">HGR_ROWS</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>picture_format (AppleHiResPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 106</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">picture_format</span>
15
+ <span class="ruby-identifier">:png</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -88,8 +88,8 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000049">file_system_file_types</a>&nbsp;&nbsp;
92
- <a href="#M000050">unpacked_picture_bytes</a>&nbsp;&nbsp;
91
+ <a href="#M000013">file_system_file_types</a>&nbsp;&nbsp;
92
+ <a href="#M000014">unpacked_picture_bytes</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -111,12 +111,12 @@
111
111
  <div id="methods">
112
112
  <h3 class="section-bar">Public Class methods</h3>
113
113
 
114
- <div id="method-M000049" class="method-detail">
115
- <a name="M000049"></a>
114
+ <div id="method-M000013" class="method-detail">
115
+ <a name="M000013"></a>
116
116
 
117
117
  <div class="method-heading">
118
- <a href="NADOLPic.src/M000049.html" target="Code" class="method-signature"
119
- onclick="popupCode('NADOLPic.src/M000049.html');return false;">
118
+ <a href="NADOLPic.src/M000013.html" target="Code" class="method-signature"
119
+ onclick="popupCode('NADOLPic.src/M000013.html');return false;">
120
120
  <span class="method-name">file_system_file_types</span><span class="method-args">()</span>
121
121
  </a>
122
122
  </div>
@@ -127,12 +127,12 @@
127
127
 
128
128
  <h3 class="section-bar">Public Instance methods</h3>
129
129
 
130
- <div id="method-M000050" class="method-detail">
131
- <a name="M000050"></a>
130
+ <div id="method-M000014" class="method-detail">
131
+ <a name="M000014"></a>
132
132
 
133
133
  <div class="method-heading">
134
- <a href="NADOLPic.src/M000050.html" target="Code" class="method-signature"
135
- onclick="popupCode('NADOLPic.src/M000050.html');return false;">
134
+ <a href="NADOLPic.src/M000014.html" target="Code" class="method-signature"
135
+ onclick="popupCode('NADOLPic.src/M000014.html');return false;">
136
136
  <span class="method-name">unpacked_picture_bytes</span><span class="method-args">()</span>
137
137
  </a>
138
138
  </div>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>file_system_file_types (NADOLPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 143</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">file_system_file_types</span>
15
+ {
16
+ <span class="ruby-constant">NADOLDos</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">:any</span>
17
+ }
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>unpacked_picture_bytes (NADOLPic)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/apple2/AppleHiResPic.rb, line 151</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unpacked_picture_bytes</span>
15
+ <span class="ruby-identifier">contents</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>