Latest 1.1.4
Homepage https://github.com/HirokiUmatani/PEAR-Graphics-iOS
License MIT
Platforms ios 8.0, requires ARC
Dependencies PEAR-FileManager-iOS, PEAR-DataConvertor-iOS
Authors

PEAR-Graphics-iOS GitHub license CocoaPods CocoaPods

====

Overview

This library can draw on a canvas in iOS.

Demo Screen

draw_canvas_demo

Installation


pod 'PEAR-Graphics-iOS'

Usage

□import
#import "PEARGraphics.h"
□create instance

“` Objective−C
PEARCanvas *_canvas = [[PEARCanvas alloc] initWithFrame:self.view.frame
onView:self.view
index:0];


#####□draw  

``` Objective−C
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [_canvas setTouchPointWithTouches:touches];
}
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
    [_canvas setMovePointWithTouches:touches];
    [_canvas drawStart];
    [_canvas setPencilWithShape:kCGLineCapRound
                      thickness:5.0   colorRed:0.0
                     colorGreen:0.0  colorBlue:0.0
                          alpha:1.0];
    [_canvas draw];
    [_canvas drawEnd];
}
□save

“` Objective−C
[_canvas save];


#####□fatch save List data  

``` Objective−C
    [_canvas fetchSaveData];
□fatch save image data

“` Objective−C
[_canvas fetchSaveDataAtIndex:0];


#####□redo
``` Objective−C
    [_canvas redo];
□undo

“` Objective−C
[_canvas undo];


### Document
[document library](http://cocoadocs.org/docsets/PEAR-Graphics-iOS)

### Licence
[MIT](https://github.com/HirokiUmatani/PEAR-Graphics-iOS/blob/master/LICENSE)

### Author
[GitHub](https://github.com/HirokiUmatani)  
[CocoaPod](https://cocoapods.org/owners/4170)  
[FaceBook](https://www.facebook.com/hiroki.umatani)  
[Twitter](https://twitter.com/pearchatHU)  

Latest podspec

{
    "name": "PEAR-Graphics-iOS",
    "version": "1.1.4",
    "platforms": {
        "ios": "8.0"
    },
    "license": "MIT",
    "summary": "This library can to draw on canvas in iOS",
    "homepage": "https://github.com/HirokiUmatani/PEAR-Graphics-iOS",
    "authors": {
        "HirokiUmatani": "[email protected]"
    },
    "source": {
        "git": "https://github.com/HirokiUmatani/PEAR-Graphics-iOS.git",
        "tag": "1.1.4"
    },
    "source_files": "PEAR-Graphics-iOS/*.{h,m}",
    "dependencies": {
        "PEAR-FileManager-iOS": [],
        "PEAR-DataConvertor-iOS": []
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This