Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Delphi Paint Program

Posted on 1997-05-01
1
Medium Priority
?
1,404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

704 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