Board index » delphi » Printer Canvas and FloodFill

Printer Canvas and FloodFill

Hi, I'm having trouble using FloodFill on a Printer canvas. It doesn't seem
to do anything.
I need to fill an Irregular surface and then print it and I really need
FloodFill to do it...
Please help!

Thanks!

 

Re:Printer Canvas and FloodFill


I fell into that trap before as well... It doesn't work because the printer
driver (I suppose) cannot feed back which RGB values a "pixel" has. Which is
necessary for defining boundaries.

Way around it: make a bitmap of same size as the surface you want to draw
on, draw on the bitmap including your floodfill and then copy the bitmap to
the printer canvas using a routine that has been defined here before. If you
don't have it I think there's an example in Earl Glynn's Computer lab, the
Printer Demo in his Other Projects page:  http://infomaster.net/external/efg

Quote
slaven Karalic wrote in message <6frv4j$5c...@forums.borland.com>...
>Hi, I'm having trouble using FloodFill on a Printer canvas. It doesn't seem
>to do anything.
>I need to fill an Irregular surface and then print it and I really need
>FloodFill to do it...
>Please help!

>Thanks!

Other Threads