Brush#

Defined in library scandit_datacapture_core_ui

Brush#
class Brush

Added in version 6.7.0

Brushes define how objects are drawn on screen and allow to change their fill and stroke color as well as the stroke width. They are, for example, used to change the styling of barcode locations, or other objects drawn on top of the video preview. Brushes are immutable. Once created none of the members can be modified.

transparent#
static Brush get transparent

Added in version 6.7.0

Creates a new brush where both fill and stroke colors are set to fully transparent black. The stroke width is set to zero.

Brush(fillColor, strokeColor, strokeWidth)#
 Brush(Color fillColor,
        Color strokeColor,
        double strokeWidth)

Added in version 6.7.0

Creates a new brush with provided fill, stroke colors and stroke width.

fillColor#
Color get fillColor

Added in version 6.7.0

The fill color used to draw the object.

strokeColor#
Color get strokeColor

Added in version 6.7.0

The stroke color used to draw the object.

strokeWidth#
double get strokeWidth

Added in version 6.7.0

The width in device-independent pixels used to render the stroke.