Drawing and Animation
Drawing and Animation Components" typically refer to software libraries or frameworks that provide tools and functionalities for creating graphical content, illustrations, and animations in applications. These components are essential for developers who want to enhance the visual appeal and interactivity of their software.
About the component
- Last Update 25 Oct, 2023
- Component Version : 2.0.0
- API 21, Android 5.0 Lollipop
- 29 Blocks Available
Provides a canvas for drawing and text input, with various customization options.
Overview
A visible component that acts as a canvas for drawing and adding text.
This component might require permissions to save images, depending on storage settings.
Events
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | error | string |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | path | string |
Methods
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | layout | AndroidViewComponent |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | view | AndroidViewComponent | |
2 | name | string | |
3 | extension | string |
Properties
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Drawer | CanvasView.Drawer |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Mode | CanvasView.Mode |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Alpha | Integer | |
2 | Alpha | Integer |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | LineCap | Paint.Cap |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | PainterStyle | Paint.Style |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Text | string | |
2 | Text | string |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Typeface | string |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | BgColor | color | |
2 | BgColor | color |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Blur | float | |
2 | Blur | float |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | FontSize | number | |
2 | FontSize | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | StrokeColor | color | |
2 | StrokeColor | color |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | StrokeWidth | number | |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | MODE_DRAW | CanvasView.Mode |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | MODE_ERASER | CanvasView.Mode |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | MODE_TEXT | CanvasView.Mode |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | DRAWER_CIRCLE | CanvasView.Drawer | |
2 | DRAWER_ELLIPSE | CanvasView.Drawer | |
3 | DRAWER_LINE | CanvasView.Drawer |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | DRAWER_PEN | CanvasView.Drawer | |
2 | DRAWER_QUADRATIC_BEZIER | CanvasView.Drawer | |
3 | DRAWER_QUBIC_BEZIER | CanvasView.Drawer |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | DRAWER_RECTANGLE | CanvasView.Drawer |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | LineCap_BUTT | Paint.Cap | |
2 | LineCap_ROUND | Paint.Cap | |
3 | LineCap_SQUARE | Paint.Cap |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | MODE_DRAW | CanvasView.Mode | |
2 | MODE_ERASER | CanvasView.Mode | |
3 | MODE_TEXT | CanvasView.Mode |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | STYLE_FILL | Paint.Style | |
2 | STYLE_FILL_AND_STROKE | Paint.Style | |
3 | STYLE_STROKE | Paint.Style |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Typeface_DEFAULT | Typeface | |
2 | Typeface_DEFAULT_BOLD | Typeface | |
3 | Typeface_MONOSPACE | Typeface |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Typeface_SANS_SERIF | Typeface | |
2 | Typeface_SERIF | Typeface | |
3 | extension_PNG | string | .png |