Re:FloodFill in Printer()->Canvas
Hi Rene,
Quote
> Passing my Printer()->Canvas to my various drawing functions, the
> FloodFill not works (Works fine on others canvas). Is any other way to
> do the same.
Go through an intermediate bitmap, before rendering to the printer.
That is, pass the Canvas of a TBitmap into your drawing functions,
convert this bitmap to a DIB, then send the bitmap to the printer via
the StretchDIBits() API function
[http://bcbcaq.freeservers.com/print_graphics.html]. Joe C. Hecht's
TExcellent*Printer line of components is your best bet for this...
http://home1.gte.net/joehecht/index.htm
Quote
> FillRect, FillPoly, etc. are not exactly what I need. Of course, if
> anyone have a suggestion to fill perfectly a region which is a kind of
> open polygon which is close with a PolyBezier curve.
Convert your shape to a region, then use the FillRgn() GDI function.
Good luck!
--
Damon Chandler
http://bcbcaq.freeservers.com