KitePageRasterizer
Imperative page → ImageBitmap pipeline. This is the raster engine behind KiteDocView; it is public so apps with custom viewers (own pagers, thumbnail grids, PNG export jobs) don't have to re-implement the CTM/flip/hairline math themselves.
Obtain one inside composition with rememberKitePageRasterizer, or construct it directly off-composition when you already hold a TextMeasurer.
rasterize runs synchronously on the calling thread; rasterizeOffMain moves the work to kitepdfRasterDispatcher (a background pool on JVM/Android/Apple, Main on JS/Wasm) so a complex page never janks scrolling or pinch. KiteDocView uses that path.
Constructors
Binary-compatible constructor using the default bitmap ceiling.
Functions
rasterize with an application canvas wrapper. See KiteCanvasDecorator for ordering, repeatable paint passes and threading requirements.
rasterize, off the main thread where the platform allows. One page runs to completion once started (the synchronous renderer has no cancellation points; the operation budget bounds the worst case), so cancellation takes effect between pages.
rasterizeOffMain with an application canvas wrapper. See KiteCanvasDecorator for ordering, repeatable paint passes and threading requirements.