Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Delphi Paint Program

Posted on 1997-05-01
1
Medium Priority
?
1,408 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 150 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

963 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