Skip to content

simple drawing view with ability to draw shapes and customize the view

Notifications You must be signed in to change notification settings

star4droid/DrawingView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrawingView

simple drawing view with ability to draw shapes and customize the view change between Eraser/Pen Mode

DrawingV.setEraserMode(false);

Change Drawing Color

DrawingV.setColor(Color.BLACK);

undo/redo/clear

DrawingV.undo();//undo last draw
DrawingV.redo();
DrawingV.clear();//clear the draw

Check ability To Undo/Redo

if(CanUndo()){
//do something if there is ability to Undo
};
if(CanRedo()){
//do something if there is ability to Redo
};

set/get pen size

DrawingV.setPenSize(getPenSize()+1);//set pen size

set Drawing Type

DrawingV.setDrawType(DrawingView.TYPES.SQUARE);
//Types:- SQUARE/PEN/LINE/CIRCLE/TRIANGLE1/TRIANGLE2

helpers

DrawingV.ShowHelper(true);//To show Thae Helper

ScreenShot

About

simple drawing view with ability to draw shapes and customize the view

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages