Skip to content

gianlucatursi/GTImageViewDraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTImageView Draw

This is a simple category to make your UIImageView drawable.

###How to Use

Copy UIImageView+Draw.h and UIImageView+Draw.m into your project.

Import in your Controller:

#import "UIImageView+Draw.h"

When we want to enable the drawing of writing the image:

[self.myImage startDrawing];

When we want to disable the drawing of writing the image:

[self.myImage stopDrawing];

Done.

Methods

Change Color

[self.myImage setColor:[UIColor blueColor]];    

Change Brush

[self.myImage setBrush:[(UISlider *)sender value]]; 

Select Rubber

[self.myImage selectRubber];

Reset image

[self.myImage resetImage];

Save Photo

[self.myImage save];

GTImageView+Draw.

Clone this repository and play the Demo. Enjoy.

About

Simple category to draw images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published