Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wrldwzrd89

macrumors G5
Original poster
Jun 6, 2003
12,110
77
Solon, OH
Hey, all. I'm working on a simple "MSPaint-like" image editor. I'm at the point where I should start implementing tools. What would make the most sense to start with? Rectangle tool? Ellipse? Fill brush? I ask because implementing some tools will make adding other tools easier - in that a working tool implementation can be used to test the tools within.
 

Cromulent

macrumors 604
Oct 2, 2006
6,817
1,102
The Land of Hope and Glory
Hey, all. I'm working on a simple "MSPaint-like" image editor. I'm at the point where I should start implementing tools. What would make the most sense to start with? Rectangle tool? Ellipse? Fill brush? I ask because implementing some tools will make adding other tools easier - in that a working tool implementation can be used to test the tools within.

Depends. Is it going to be vector based or not? I assume not from the MS Paint reference.
 

Cromulent

macrumors 604
Oct 2, 2006
6,817
1,102
The Land of Hope and Glory
You are correct, it is raster-based.

I should point out I've never done any work on image editors before first.

Personally I would do the free hand tools first as they do not make use of the geometric shapes but do make use of the drawing code. Then you can make use of that code to build the shape tools.

I could be way out on that but it seems reasonably logical for this time of night :).
 

wrldwzrd89

macrumors G5
Original poster
Jun 6, 2003
12,110
77
Solon, OH
Thank you very much for the suggestion! Your idea sounds very much like the right way to go, so that's what I'll do.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.