Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-26-2002, 01:38 PM
Derek Derek is offline
Senior Member
 
Join Date: Jun 2002
Posts: 559
Default FloodFill


Hello again. When I use:

Image1.Canvas.FloodFill(1,1,clRed,fsSurface)

it paints the image white and not red. Why is this and how can I corect it?
Thanks :-)

[b]
Regards

Derek )
Reply With Quote
  #2  
Old 06-26-2002, 01:54 PM
andyho andyho is offline
Senior Member
 
Join Date: Jul 2001
Posts: 1,446
Default RE: FloodFill

Floodfill fills with the current brush, thus you should set image1.canvas.brush.color:=clred first. The meaning of the parameter color does depend on the value of the fillstyle - it will either search for a red boundary or will fill the read area.

Bye,
Andy

If it helped please click accept...
Reply With Quote
  #3  
Old 06-26-2002, 02:00 PM
GoodFun GoodFun is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,645
Default RE: FloodFill

btw, if you just want to change the background color of the form, you can do this:

Form1.Color := clRed;

otherwise you already got the correct answer from Andy

Hope this helps,

Marcel

Please click on Accept if this helped...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 02:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.