Stroke.Properties

public static interface Stroke.Properties

Represents optional properties of a Stroke, e.g., stroke color and width.

Public Method Summary

abstract int
getColorRgba()
Returns the stroke color as a 32-bit RGBA value.
abstract float
getToolTargetDiameter()
Returns the target diameter of the stroke.

Public Methods

public abstract int getColorRgba ()

Returns the stroke color as a 32-bit RGBA value.

public abstract float getToolTargetDiameter ()

Returns the target diameter of the stroke.

This refers to the size of the drawing tool. Although strokes made by the ink engine often don't have a fixed width we're storing just a single value per stroke here because it's difficult (and unnecessary) to obtain the per point diameters. The diameter is given in the same units as the x and y coordinates of the strokes.