Solved

Delphi Paint Program

Posted on 1997-05-01
1
1,386 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now