Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Headless rendering on Android. Produces an ARGB_8888 Bitmap sized by PdfPage.rasterGeometry (rotation, crop box and /UserUnit all included), at scale device pixels per point. No Compose dependency.

Link copied to clipboard

Headless rendering on Apple platforms (iOS, macOS, tvOS). Produces a PNG-encoded NSData sized by PdfPage.rasterGeometry (rotation, crop box and /UserUnit all included), at scale device pixels per point. Pure CoreGraphics + ImageIO, no UIKit/AppKit, no Compose dependency.

Link copied to clipboard

KiteCanvas backed by java.awt.Graphics2D. Pure JRE: no Skia, no Compose, no native binaries.

Link copied to clipboard

Headless raster output using AWT + ImageIO: no Skia, no Compose, no native binaries beyond what the JDK already ships. Perfect for:

Link copied to clipboard

KiteCanvas backed by a browser-side CanvasRenderingContext2D. Pure Kotlin/JS + DOM: no Compose for Web, no Skia/WASM bundle.

Link copied to clipboard
class CoreGraphicsCanvas(ctx: CGContextRef) : KiteCanvas

KiteCanvas backed by an iOS / macOS CGContextRef. Pure CoreGraphics: no Compose, no Skia. The natural choice for native iOS apps using UIKit or SwiftUI; pass the context from your custom UIView's drawRect: or the UIGraphicsImageRenderer.image { ctx in … } block straight in.