OLD | NEW |
(Empty) | |
| 1 function sk_scrape_startcanvas(c, fileName) |
| 2 canvas = c |
| 3 clipstack = {} |
| 4 restoreCount = 0 |
| 5 end |
| 6 |
| 7 function sk_scrape_endcanvas(c, fileName) |
| 8 canvas = nil |
| 9 end |
| 10 |
| 11 function sk_scrape_accumulate(t) |
| 12 if (t.verb == "restore") then |
| 13 restoreCount = restoreCount + 1; |
| 14 io.write("Clip Stack at restore #", restoreCount, ":\n") |
| 15 for i = 1, #clipstack do |
| 16 local element = clipstack[i]; |
| 17 io.write("\t", element["op"], ", ", element["type"], ", aa:", tostri
ng(element["aa"]), "\n") |
| 18 end |
| 19 io.write("\n") |
| 20 else |
| 21 clipstack = canvas:getClipStack() |
| 22 end |
| 23 end |
| 24 |
| 25 function sk_scrape_summarize() end |
OLD | NEW |