Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-19-2009, 07:56 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 2
Default Draw lines over background image

Hi all,

I am new to iPhone development and I am looking for assistance for the best way to go about creating my first application. I have seen some tutorials where you can draw lines on a screen but I'm after something more.

I have the following requirements:
1. I want to be able to provide users with several background images.
2. The user can choose one and it will load the image where the user can draw over the image with their finger.
3. The user should be able to undo the last line drawn by pressing a button on the UI.
4. The line that is drawn should look more 3D (i.e. embossed) and not flat/2D.
5. The user should be able to select from different colors and size of paint brush.
6. The user should then be able to save the drawing so it can be accessed at another time.

I was wondering is there any tutorial that anyone is aware of to get me started or any areas I should explore further to give me my desired outcome.

Thanks in advance.
munkyman is offline   Reply With Quote
Old 10-19-2009, 08:17 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 1
Default hi munkyman,you can use Core Graphics for that.

You can use touchesBegan:withEvent and touchesEnd:withEvent method to trace down the touches ,then furthermore inside touchesEnd message you can save the view of the context as an UIImage and again set it as background in call to touchesBegan message.
If you also wants to provide undo and redo facility then you can do it by using a tempArray and storing all the images in the touchesEnd message,or more sophisticatedly you can use NSUndoManager to provide undo functionality.Hope this all will provide u a direction.
It would be better if you post some of the code snippets of hw u have tried to do the things.
















Quote:
Originally Posted by munkyman View Post
Hi all,

I am new to iPhone development and I am looking for assistance for the best way to go about creating my first application. I have seen some tutorials where you can draw lines on a screen but I'm after something more.

I have the following requirements:
1. I want to be able to provide users with several background images.
2. The user can choose one and it will load the image where the user can draw over the image with their finger.
3. The user should be able to undo the last line drawn by pressing a button on the UI.
4. The line that is drawn should look more 3D (i.e. embossed) and not flat/2D.
5. The user should be able to select from different colors and size of paint brush.
6. The user should then be able to save the drawing so it can be accessed at another time.

I was wondering is there any tutorial that anyone is aware of to get me started or any areas I should explore further to give me my desired outcome.

Thanks in advance.
shubhanshu is offline   Reply With Quote
Old 01-22-2010, 10:13 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 18
Default

Quote:
Originally Posted by munkyman View Post
Hi all,

I am new to iPhone development and I am looking for assistance for the best way to go about creating my first application. I have seen some tutorials where you can draw lines on a screen but I'm after something more.

I have the following requirements:
1. I want to be able to provide users with several background images.
2. The user can choose one and it will load the image where the user can draw over the image with their finger.
3. The user should be able to undo the last line drawn by pressing a button on the UI.
4. The line that is drawn should look more 3D (i.e. embossed) and not flat/2D.
5. The user should be able to select from different colors and size of paint brush.
6. The user should then be able to save the drawing so it can be accessed at another time.

I was wondering is there any tutorial that anyone is aware of to get me started or any areas I should explore further to give me my desired outcome.

Thanks in advance.
Here is a tutorial: iPhone Drawing Over an Image | Bukisa.com
edward is offline   Reply With Quote
Old 05-08-2010, 06:02 AM   #4 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 5
Default Use image as the particle

Quote:
Originally Posted by edward View Post

Any idea, if its reverse, lets say the image will be use to draw to image?

thanks,
-Jd
jdam is offline   Reply With Quote
Reply

Bookmarks

Tags
drawing, graphic, save

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:24 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0