Brush
Defined under the namespace Scandit.Datacapture.Core.Ui
- Brush
class Brush
Added in version 6.13.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 get transparent(): Brush
Added in version 6.13.0
Creates a new brush where both fill and stroke colors are set to fully transparent black. The stroke width is set to zero.
- constructor(fillColor, strokeColor, strokeWidth)
constructor(fillColor: Color, strokeColor: Color, strokeWidth: number)
Added in version 6.13.0
Creates a new brush with provided fill, stroke colors and stroke width.
- constructor()
constructor()
Added in version 6.13.0
Creates a new default brush. Both fill and stroke color are set to fully transparent black. The stroke width is set to zero.