Solved

Delphi Paint Program

Posted on 1997-05-01
1
1,394 Views
Last Modified: 2008-02-20
I need Delphi 2 appllication which has similary features to the ms-paint program.  The color fill for polygons is required.
This is the feature were you click on the paint can after selection ghe color then when the object is pointed to the color is floodfilled.

thanks
0
Comment
Question by:abrooks
1 Comment
 
LVL 2

Accepted Solution

by:
gysbert1 earned 50 total points
ID: 1335853
You can very easily do a flood fill routine with a recursive procedure. The procedure gets called with a point as parameter. It looks at the pixel above it, and calles itself with that point if it is the same colour. If not it looks at the pixel below itself, and the same thing. If not left, if not right etc. You can very easily do this with the pixels property of a TCanvas in Delphi, but it will most probably be pretty slow. As for the rest of the functions in the paint program, they should all be pretty easy to implement. I seem to remember there is a demo program with Delphi that has rudimentary paint program features?
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question