Commit d809be2
committed
feat:
Additional work that was required by `RawBmp::colors`:
- Making `DynamicRawColors` public.
- Making `DynamicRawColors` implement iterator.
- Refactoring logic.
- Rename `Rle{4,8}Pixels` to `Rle{4,8}Colors`
- Due to removal of position handling in `Rle{4,8}Pixels`, they can no
longer assert the the new line corresponds with the width. I left the
assertion functionally the same, but with slightly different approach.
Personally, I don't think it is necessary that that assert there at
all - like, either way the image would be broken and developer will
have to fix the `bmp` file, that assertion isn't helpful at all.RawBmp::colors
1 parent 1b93ce0 commit d809be2
3 files changed
Lines changed: 154 additions & 118 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
297 | 298 | | |
298 | | - | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | | - | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
| 305 | + | |
| 306 | + | |
304 | 307 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 308 | + | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| |||
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
330 | | - | |
| 331 | + | |
| 332 | + | |
331 | 333 | | |
332 | | - | |
| 334 | + | |
333 | 335 | | |
334 | 336 | | |
335 | | - | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
| 340 | + | |
| 341 | + | |
338 | 342 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 343 | + | |
| 344 | + | |
343 | 345 | | |
344 | 346 | | |
345 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| |||
0 commit comments