Package-level declarations

Types

Link copied to clipboard

Behavior used when a color has alpha that the hardware overlay may not preserve.

Link copied to clipboard
data class HardwareRenderingProfile(val colorMode: DisplayColorMode, val colorDepthBits: Int?, val nativeAlpha: NativeAlphaSupport, val maximumHardwareStrokeWidthPx: Float?)

Device constraints relevant to hardware-overlay rendering.

Link copied to clipboard

Deterministically owned renderer backed exclusively by libneopen_jni.so and the com.onyx.android.sdk.pennative JNI contract.

Link copied to clipboard

Output of one native-renderer operation.

Link copied to clipboard

Rendering implementation selected after capability validation.

Link copied to clipboard

Recoverable reason a rendering value was transformed or moved to software.

Link copied to clipboard

Immutable render output backed only by the modern pennative result format.

Link copied to clipboard
data class SafeColorResult(val color: Int, val path: RenderingPath, val warnings: Set<RenderingWarning>)

Hardware-safe interpretation of an authored color.

Link copied to clipboard
data class SafeStrokeWidthResult(val requestedWidthPx: Float, val hardwareWidthPx: Float?, val path: RenderingPath, val warnings: Set<RenderingWarning>)

Hardware-safe interpretation of an authored stroke width.

Functions

Link copied to clipboard

Extracts hardware-rendering constraints from this capability snapshot.

Link copied to clipboard
fun Bitmap.roundedCorners(radiusPx: Float, targetSize: PixelSize = PixelSize(width, height), antiAlias: Boolean = false): Bitmap

Returns a copy of this bitmap clipped to rounded corners and optionally resized to targetSize.

Link copied to clipboard
fun Int.toHardwareSafeColor(profile: HardwareRenderingProfile, alphaPolicy: AlphaPolicy = AlphaPolicy.COMPOSITE_FOR_HARDWARE, backgroundColor: Int = OPAQUE_WHITE): SafeColorResult

Converts an authored color for the hardware overlay without changing the stored source color.

Link copied to clipboard

Selects hardware only when the requested width is inside an evidence-backed device limit.

Link copied to clipboard

Returns a copy transformed into another pixel coordinate space while retaining input metadata.