Board index » delphi » Printer.Canvas.Floodfill, how?

Printer.Canvas.Floodfill, how?

Sorry about the empty message!  I have tried many times,
unsuccessfully, to floodfill an area on the printer canvas.
Using the same code, exactly, I can do a floodfill on an
image on a form, i.e. image.canvas.floodfill.  What is
the difference?  What is causing my grief.  The area to be
filled is enclosed by black lines and the code I'm using to
attempt a floodfill is:

Printer.Canvas.Floodfill(x,y,clBlack,fsBorder);

Why not?

If you have an idea, please e-mail me at
gjack...@smtpgate.ssmc.noaa.gov

Thanks ahead of time!

 

Re:Printer.Canvas.Floodfill, how?


Quote
Gregory E. Jackson wrote:

> Sorry about the empty message!  I have tried many times,
> unsuccessfully, to floodfill an area on the printer canvas.
> Using the same code, exactly, I can do a floodfill on an
> image on a form, i.e. image.canvas.floodfill.  What is
> the difference?  What is causing my grief.  The area to be
> filled is enclosed by black lines and the code I'm using to
> attempt a floodfill is:

> Printer.Canvas.Floodfill(x,y,clBlack,fsBorder);

> Why not?

> If you have an idea, please e-mail me at
> gjack...@smtpgate.ssmc.noaa.gov

> Thanks ahead of time!

Maybe the printer driver you're using doesn't support floodfills.
Use the GetDeviceCaps function to find out.

Happy programming!
John.

Other Threads