How to fill an area bounded with a color

L

Lee

hai everyone

Can anyone suggest any method to fill a closed region using a
particular color. I need a C function of the following format,

<return type> flood_fill(int x,int y,int fill_color,int border_color);

Thanks in advance
Lee
 
M

Michael Mair

Lee said:
hai everyone

Can anyone suggest any method to fill a closed region using a
particular color. I need a C function of the following format,

<return type> flood_fill(int x,int y,int fill_color,int border_color);

I fear you are wrong round here: Standard C does not mention
colours and does not even offer coordinates for (text) output.
Apart from there, there are many systems running on C programs
which have no notion of colour whatsoever.

Find a newsgroup for your platform or implementation, say for
WinXP (and maybe for your compiler/libraries), and ask there.


Cheers
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,915
Members
47,456
Latest member
JavierWalp

Latest Threads

Top