PainterController class
Controller to access painter parameters.
getState Get current PenState
getImageBytes Get current drawing image as uncompressed
32bit BMP Uint8List.
getPoints Get the point list drawn.
clearContent Clear current drawings with the given celarColor
.
setPenType Set PenType
setBlendMode Set the painting BlendMode. BlendMode.dstOut can
be used as an eraser pen.
setStrokeColor Set stroke color.
setMinStrokeWidth Set the minimum stroke width.
setMaxStrokeWidth Set the maximum stroke width.
setBlurSigma Set the blur. 0 means no blur.
setBackgroundImage Set the background image. The painting will
not modify this image.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearContent(
{Color? clearColor}) → dynamic -
getImageBytes(
) → Uint8List? -
getPoints(
) → List< Offset> ? -
getState(
) → PenState? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBackgroundImage(
Uint8List image) → dynamic -
setBlendMode(
BlendMode mode) → dynamic -
setBlurSigma(
double sigma) → dynamic -
setMaxStrokeWidth(
double width) → dynamic -
setMinStrokeWidth(
double width) → dynamic -
setPenType(
PenType type) → dynamic -
setStrokeColor(
Color color) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited