dblapps / dascratchpad Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi .
I am using your code for drawing on image it is working good in simulator iOS7, iOS6 or iOS5,
Main problem is this when i run that code in device with iOS7 it is not working correclty it draw line but very slow. Please help me.
The tool is great, and easy to use. However, the performance is quite slow in iOS7, iOS8.
Dear Firends,
Could you add the delegate to check users have already drawn in the screen or not.
Thanks,
Diego
Hey there,
Sometimes when I try to load a picture into my drawing area the picture flips 90 degres to the left. In other cases it flips 180 degres. Any idea what ia causing it?
This is what I added to your example project:
DAViewController.m:
- (IBAction)loadPic:(UIButton *)sender {
UIImagePickerController *pickerLibrary = [[UIImagePickerController alloc] init];
pickerLibrary.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
pickerLibrary.delegate = self;
[self presentModalViewController:pickerLibrary animated:YES];
}
(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
{
[self.scratchPad setSketch:image];
[self dismissModalViewControllerAnimated:YES];
}
Also, how can i save the aspect ratio when loading a picture? it seems like the picture loads fine but changes aspect after first tap to draw on canvas.
Hi,
I am having trouble with drawing on cropped images using your code. If the mainImage is not exactly equal to the screen size then I have proportional distortion problems. You can see my problem here http://stackoverflow.com/questions/22521928/cgcontextdrawimage-distorts-proportions
I was wondering if you could help me out in any way. Thanks for the code, and any suggestions you may have.
Hello again,
I would like to propose a possible enhancement...
Can you distinguish the width and opacity of paint and airbrush tool?
When I set width and opacity of paint tool this to be different from the airbrush ones!
Thanks again
George Gerardis
Hello,
Very nice tool, thanks a lot for that. I will include it in one of my apps and when I am ready I will send you a notice.
Only two notices!
George N. Gerardis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.