in search of a starter iphone painting tutorial or sample code
-
I am seeking a bare bones beginner source or tutorial for building
painting apps on the iphone.
Of all the apps I tested. None have a paint bucket tool that only
fills in a section of color. They all fill the screen.
So, I must make my own. :D -
On Jul 3, 2009, at 11:15 PM, colo wrote:
> I am seeking a bare bones beginner source or tutorial for building
> painting apps on the iphone.
> Of all the apps I tested. None have a paint bucket tool that only
> fills in a section of color. They all fill the screen.
> So, I must make my own. :D
Having the right algorithm is half the work.
As always, google is your friend...
"Paint bucket" algorithm?
http://discuss.joelonsoftware.com/default.asp?joel.3.18248.3
How does the fill operation work in paint applications?
http://stackoverflow.com/questions/274213/how-does-the-fill-operation-work-
in-paint-applications
Flood fill
http://en.wikipedia.org/wiki/Flood_fill
Wagner -
On Jul 3, 2009, at 5:15 PM, colo wrote:
> I am seeking a bare bones beginner source or tutorial for building
> painting apps on the iphone.
A "bare bones beginner" source or tutorial is simply not possible
for an application of this nature. I'm unfamiliar with the iPhone
example code offerings but I know that the Sketch example for the Mac
environment will give you what you need to create a drawing
application, but it is by no means "bare bones" or "beginner", nor can
it possibly be. Even the TextEdit example is too complex a problem
(encodings, doc types, pagination, and many other things).
What you need, if you're a complete Cocoa beginner, is to spend the
time with the introductory material from Apple, a good book, and time.
If you're already familiar with Cocoa apps and you're actually only
asking for painting-related stuff, then the Sketch example code is
where it's at.
> So, I must make my own. :D
... or you could try picking your favorite one and submitting a
feature request to the developer. Few complete applications are so
easy it's worth writing your own just to add one feature.
--
I.S. -
Thank you all. I however am not a beginner at the programing side of
things now.
I was more looking for some type of possible common article or reading
material that is on the web from others that have tinkered with
painting apps for iphone in particular. Since there seem to be so many
in the store. I had to figure that there was some common thread that
was being utilized for these developers as a starter kit of sorts.
That's why I don't have a particular question of said feature, nor am
I asking for free work. Just checking to see if theres might be
something popular that I may have missed.
As example. I know that iphone sdk does not support Core Image yet. Of
which I would assume that a normal desktop app would use to draw with.
So another avenue must be taken in iphone for now. I might be wrong.
Just checking. -
mmalc Crawford Re: in search of a starter iphone painting tutorial or sample code Jul 04 2009, 00:00On Jul 3, 2009, at 2:15 PM, colo wrote:
> I am seeking a bare bones beginner source or tutorial for buildingThis one uses OpenGL:
> painting apps on the iphone.
>
<http://developer.apple.com/iphone/library/samplecode/GLPaint/
index.html>
You could use a similar technique to create CGPaths to represent the
strokes, but performance with OpenGL is considerably better.
mmalc -
> This one uses OpenGL:
> <http://developer.apple.com/iphone/library/samplecode/GLPaint/index.html>
>
> You could use a similar technique to create CGPaths to represent the
> strokes, but performance with OpenGL is considerably better.
>
> mmalc
Oh awesome! Thank you. This is a perfect start that I was after.



