PenConfig

Complete configuration contract from onyxsdk-pennative:1.0.4.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Stable vendor identifiers for renderer types and brush-tip shapes.

Properties

Link copied to clipboard

Base directional brush angle in degrees.

Link copied to clipboard

Major-to-minor axis ratio for directional brush tips.

Link copied to clipboard

Brush-tip shape identifier; use one of the NEOPEN_BRUSH_SHAPE_* constants.

Link copied to clipboard

Base distance between bitmap-brush stamps.

Link copied to clipboard
var color: Int

Stroke color encoded as an Android ARGB integer.

Link copied to clipboard

Whether stroke direction contributes to shaped-brush width.

Link copied to clipboard

Horizontal scale applied to every input coordinate before rendering.

Link copied to clipboard

Vertical scale applied to every input coordinate before rendering.

Link copied to clipboard
var dpi: Float

Display density used when calculating bitmap-brush stamp spacing.

Link copied to clipboard

Minimum configured thinning applied to the end of a brush-sign stroke.

Link copied to clipboard

Amount of velocity-derived thinning applied to the end of a brush-sign stroke.

Link copied to clipboard

Enables the renderer's lower-cost fast path where the selected pen type supports it.

Link copied to clipboard

Pressure at or below which brush-sign rendering treats the sample as unpressured.

Link copied to clipboard

Maximum raw touch pressure represented by the input source.

Link copied to clipboard

Smallest pressure- or velocity-adjusted stroke width in output-coordinate pixels.

Link copied to clipboard

Strength of the pressure curve, normalized to the range from zero to one.

Link copied to clipboard

Additional brush rotation in degrees.

Link copied to clipboard

Precision factor used to reduce bitmap-brush stamp spacing.

Link copied to clipboard

Strength of width smoothing between adjacent input points, from zero to one.

Link copied to clipboard

Minimum traveled distance required before brush-sign geometry is emitted.

Link copied to clipboard

Number of initial brush-sign segments to skip before emitting geometry.

Link copied to clipboard

Whether stylus tilt contributes to variable-width rendering.

Link copied to clipboard

Multiplier applied to the normalized tilt contribution.

Link copied to clipboard
var type: Int

Renderer type identifier; use one of the NEOPEN_PEN_TYPE_* constants.

Link copied to clipboard

Amount by which velocity widens a stroke, normalized from zero to one.

Link copied to clipboard

Velocity at or below which velocity-dependent width changes are ignored.

Link copied to clipboard

Lower velocity bound used when normalizing velocity-dependent width changes.

Link copied to clipboard

Amount by which velocity narrows a stroke, normalized from zero to one.

Link copied to clipboard

Upper velocity bound used when normalizing velocity-dependent width changes.

Link copied to clipboard

Nominal stroke width in output-coordinate pixels.