Board index » delphi » Using floodfill on the printer canvas

Using floodfill on the printer canvas

I have written a plotting routine for cam profiles, it works by plotting the
outline of the cam and then floodfilling the area, it works great for any
canvas that is on screen, but as soon as i pass it the printers canvas it
ignores the floodfills and just plots the lines.

Has anyone else seen this and is the a fix/get around. I would be really
greatful for any help.

    Craig Marshall c_marsh...@mcit.co.uk

thanks

 

Re:Using floodfill on the printer canvas


Quote
"Craig Marshall" <c_marsh...@mcit.co.uk> wrote:
>I have written a plotting routine for cam profiles, it works by plotting the
>outline of the cam and then floodfilling the area, it works great for any
>canvas that is on screen, but as soon as i pass it the printers canvas it
>ignores the floodfills and just plots the lines.

Does the printer driver do FloodFills?

Regards,
Chris Roberts

Re:Using floodfill on the printer canvas


The Printer Canvas is write only, so I doubt that an operation that
requires reading data back will work.  The only possibility is if the
printer driver supports it, but I doubt it.  Check out
http://www,efg2.com site for info on printing in Delphi, there may be
some helpful stuff there.

       Steve Bliss

Re:Using floodfill on the printer canvas


Why don't you copy the onscreen canvas(or bitmap)
or some hidden canvas to the printer ?

I also have a floodfill procedure on my delphi page.

Rene
--
Ing.Buero R.Tschaggelar - http://www.ibrtses.com

Quote
Craig Marshall wrote:

> I have written a plotting routine for cam profiles, it works by plotting the
> outline of the cam and then floodfilling the area, it works great for any
> canvas that is on screen, but as soon as i pass it the printers canvas it
> ignores the floodfills and just plots the lines.

> Has anyone else seen this and is the a fix/get around. I would be really
> greatful for any help.

Re:Using floodfill on the printer canvas


Quote
"Craig Marshall" <c_marsh...@mcit.co.uk> wrote:
>I have written a plotting routine for cam profiles, it works by plotting the
>outline of the cam and then floodfilling the area, it works great for any
>canvas that is on screen, but as soon as i pass it the printers canvas it
>ignores the floodfills and just plots the lines.

>Has anyone else seen this and is the a fix/get around. I would be really
>greatful for any help.

1) An alternative would be to draw the "flooded" region first, as a
rectangle or some other simple polygon, and then draw the other more
complex polygons on top of that. (Steve Schafer)

2) Construct the "flooded" area from polygons.

Regards,
Chris Roberts

Re:Using floodfill on the printer canvas


On Thu, 01 Jul 1999 23:35:25 GMT, croberts_nils...@picknowl.com.au

Quote
(Chris Roberts) wrote:
>1) An alternative would be to draw the "flooded" region first, as a
>rectangle or some other simple polygon, and then draw the other more
>complex polygons on top of that. (Steve Schafer)

I don't recall ever saying that. :)

(Not that there's anything wrong with the idea.)

-Steve

Re:Using floodfill on the printer canvas


pand...@telepath.com (Steve Schafer (TeamB)) wrote:

Quote
>I don't recall ever saying that. :)

=========
pand...@telepath.com (Steve Schafer (TeamB)) wrote:

Quote
>On 15 Dec 1997 22:48:14 GMT, "Peter Van der Voort"
><Peter.VanDerVo...@ping.be> wrote:

>>Can I write some algorithm that performs the same function as floodfill?

>Another alternative would be to draw the "flooded" region first, as a
>rectangle or some other simple polygon, and then draw the other more
>complex polygons on top of that.

>-Steve

Regards,
Chris Roberts

Re:Using floodfill on the printer canvas


On Fri, 02 Jul 1999 06:20:42 GMT, croberts_nils...@picknowl.com.au

Quote
(Chris Roberts) wrote:
>>On 15 Dec 1997 22:48:14 GMT, "Peter Van der Voort"

That was a year and a half ago! Of course I don't remember ever saying
it. :)

-Steve

Other Threads