DrawBox: a multi-purpose tool to draw anything on canvas, written completely on jetpack compose

Overview

DrawBox

Android Arsenal

DrawBox is a multi-purpose tool to draw anything on canvas, written completely on jetpack compose.

Features

  • Customisable stoke size and color
  • Inbuilt Undo and Redo options
  • Reset option
  • Easy Implementations
  • Written on Jetpack-Compose

Demo

Usage

DrawBox(Modifier.fillMaxSize().weight(1f, true))

With multiple necessary extension methods

* setStrokeColor(color: Color)
* setStrokeWidth(width: Float)
* unDo()
* reDo()
* reset()
* getDrawBoxBitmap()    // gives the result bitmap from canvas

Download

Download or grab via Gradle:

include in app level build.gradle

repositories {
   mavenCentral()
}
 implementation  'io.ak1:drawbox:1.0.0'

or Maven:

<dependency>
  <groupId>io.ak1</groupId>
  <artifactId>drawbox</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

or ivy:

<dependency org='io.ak1' name='drawbox' rev='1.0.0'>
  <artifact name='drawbox' ext='pom' ></artifact>
</dependency>

License

Licensed under the Apache License, Version 2.0, click here for the full license.

Author & support

This project was created by Akshay Sharma.

If you appreciate my work, consider buying me a cup of to keep me recharged 🤘 by PayPal

I love using my work and I'm available for contract work. Freelancing helps to maintain and keep my open source projects up to date!

You might also like...
Examples of the use of animations in jetpack compose and view, as well as measurements of perfomance
Examples of the use of animations in jetpack compose and view, as well as measurements of perfomance

AndroidAnimationWorld Примеры использования анимаций в jetpack compose и view, а также замеры perfomance для

PassCode is the Android app made by using Jetpack Compose. Created for the test task submission.
PassCode is the Android app made by using Jetpack Compose. Created for the test task submission.

PassCode PassCode is the Android app made by using the Jetpack Compose. Created for the test task submission. Showcase Dark Theme Light Theme ACs The

🪐 Jetpack Compose animation library that allows you to implement animations such as shared element transition.
🪐 Jetpack Compose animation library that allows you to implement animations such as shared element transition.

Orbitary 🪐 Jetpack Compose animation library that allows you to implement animations such as shared element transition. Download Gradle Add the depen

Jetpack Compose Animations

Jetpack Compose Animations Animations Duolingo Owl - Anmol Verma Screen.

Trying to play with Jetpack compose low level animations APIs, which are animate*AsState APIs.
Trying to play with Jetpack compose low level animations APIs, which are animate*AsState APIs.

ComposeSimpleAnimation Trying to play with Jetpack compose low level animations APIs, which are animate*AsState APIs that I needed in another project.

🪐 Jetpack Compose animation library that allows you to implement animations such as shared element transition.
🪐 Jetpack Compose animation library that allows you to implement animations such as shared element transition.

🪐 Jetpack Compose animation library that allows you to implement animations such as shared element transition.

Set of extra Transitions on top of Jetpack Transitions Library

Transitions Everywhere Set of extra Transitions on top of AndroidX Transitions Library. About Article about transitions and library Originally this li

Set of extra Transitions on top of Jetpack Transitions Library

Transitions Everywhere Set of extra Transitions on top of AndroidX Transitions Library. About Article about transitions and library Originally this li

RX-based async paradigm, Room, DI (Hilt), Retrofit, MVVM, Jetpack, Lottie, Transitions
RX-based async paradigm, Room, DI (Hilt), Retrofit, MVVM, Jetpack, Lottie, Transitions

CatBreedsApp RxJava, Room, DI (Hilt), Jetpack, Shared element transition. clean MVVM architecture, Retrofit Cats need your help, we want to build an a

Comments
  • Java documentation?

    Java documentation?

    I have seen many of your libraries but none of them have a documentation for Java. I have not knowledge about Kotlin and so am unable to use your amazing libraries. It would be great if you could provide the documentation in java for all the projects. Thanks and I hope you will do it.

    opened by sambhav2358 5
  • The lateral sliding fails, and the drawing image cannot be converted to bitmap normally

    The lateral sliding fails, and the drawing image cannot be converted to bitmap normally

    Describe the bug The lateral sliding fails, and the drawing image cannot be converted to bitmap normally

    DrawBox( modifier = Modifier.fillMaxSize(), drawController = drawController, bitmapCallback = { img,e -> Log.d(TAG, "SignatureBoard: ${e?.message}") image=img }, backgroundColor = Color(0xFFFFFFFF) ) logs: W/HiTouch_PressGestureDetector: Touch pointer move a lot. The moving distance of X is:35.266876, limit is:60The moving distance of Y is:65.754395, limit is:60

    opened by BastJavaCoder 0
Owner
Akshay Sharma
Developer | Freelancer | Inquisitive | Autodidact | Creative
Akshay Sharma
💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can.

?? Rich Android Path. ?? Draw as you want. ?? Animate much as you can. Download sample app: Features Full Animation Control on Paths and VectorDrawabl

Ahmed Tarek 2.3k Dec 20, 2022
Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animations painless.

AnimatableCompose Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animation painless. What you can create from M

Emir Demirli 12 Jan 2, 2023
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap:

SpeedView Dynamic Speedometer, Gauge for Android. amazing, powerful, and multi shape ⚡ , you can change (colors, bar width, shape, text, font ...every

Anas Altair 1.2k Jan 7, 2023
Android library to create complex multi-state animations.

MultiStateAnimation Android library to create complex multi-state animations. Overview A class that allows for complex multi-state animations using An

Keepsafe 405 Nov 11, 2022
Android Library To Create Button With Multi Reactions like Facebook or Linkedin

ReactButton Android Library written in Java to Create ReactButton with Multi Reactions like Facebook or Linkedin ?? Default Reactions ?? Custom Reacti

Amr Hesham 103 Dec 15, 2022
Simple tool which help you to implement activity and fragment transition for pre-Lollipop devices.

PreLollipopTransition Simple tool which help you to implement activity and fragment transition for pre-Lollipop devices. Download In your app build.gr

Takahiro Menju 1.3k Nov 28, 2022
Compose-actors - Android app built with jetpack compose follows new revamped guide to app architecture

Compose Actors ?? Inspired from JetCaster JetNews JetSnack More compose content

Raj 110 Dec 29, 2022
An simple & awesome animation library written in Kotlin for Android

An simple & awesome animation library written in Kotlin for Android

Romman Sabbir 53 Oct 17, 2022
Web blog application written on Kotlin with Ktor framework

polytech-blog Web blog application written on Kotlin with Ktor framework Docker was used to create docker image Docker Compose was used to create cont

Iskander Zaripov 1 Jul 9, 2022
Group of libraries to help you build better animations with Jetpack Compose

Group of libraries to help you build better animations with Jetpack Compose

null 36 May 12, 2022