NewScanner creates a new Scanner with the given bounds.
(xs Spanner, width, height int)
| 473 | |
| 474 | // NewScanner creates a new Scanner with the given bounds. |
| 475 | func NewScanner(xs Spanner, width, height int) (sc *Scanner) { |
| 476 | sc = &Scanner{Spanner: xs, UseNonZeroWinding: true} |
| 477 | sc.SetBounds(width, height) |
| 478 | return |
| 479 | } |
| 480 | |
| 481 | // SetClip will not affect accumulation of scans, but it will |
| 482 | // clip drawing of the spans int the Draw func by the clip rectangle. |