renderTo

abstract fun renderTo(canvas: KiteCanvas, deviceCtm: KiteMatrix = KiteMatrix.IDENTITY)(source)

Paints the page into canvas under deviceCtm.


open fun renderTo(canvas: KiteCanvas, deviceCtm: KiteMatrix, cancellation: KiteCancellation)(source)

renderTo that stops early once cancellation reads true: the page returns with the canvas closed and what it painted so far. A viewer passes it so a page the reader scrolled past stops rendering. A format that renders its pages quickly ignores it.