Board index » delphi » printing graphics into eps file?

printing graphics into eps file?

I would like to print graphics directly into an eps file from a delphi
application with the correct boundig box information (not page size but graphics

size).
Currently I am using the following procedure:

- Use installed windows Apple printer driver
- select eps and print into file
- change bounding box parameters manually! in the ascii eps file

Any suggestions are appreciated.
Thanks

Oliver

 

Re:printing graphics into eps file?


On Tue, 08 Jun 1999 09:31:26 -0500, Oliver Werther

Quote
<oliver_wert...@microtune.com> wrote:
>I would like to print graphics directly into an eps file from a delphi
>application with the correct boundig box information (not page size but graphics
>size).

I don't think there is any way to do it automatically. Bounding box
information can be pretty tricky to calculate (which is probably why
the printer driver cheats and just gives the page box). You need to
calculate the bounding rectangle for each drawing element, taking into
account widths of lines and arcs, as well as the geometry of the
junctions and endcaps; the overall bounding box is the largest
rectangle that encloses all of the individual bounding rectangles.

-Steve

Re:printing graphics into eps file?


Quote
Oliver Werther wrote:

> I would like to print graphics directly into an eps file from a delphi
> application with the correct boundig box information (not page size but graphics

> size).
> Currently I am using the following procedure:

> - Use installed windows Apple printer driver
> - select eps and print into file
> - change bounding box parameters manually! in the ascii eps file

Output an eps file directy from your application. If you
get any suggestions to use some image component that
produces EPS files, not that they are only embedding a
bitmap of the output as an eps graphic, and its not
going to scale well, and its going to be very large.

The postscript language is not difficult to learn.
Basically you have moveto's, lineto's, curveto's,
fill, stroke, show (textout) and image operators.

Joe
--
Joe C. Hecht
http://home1.gte.net/joehecht/index.htm

Re:printing graphics into eps file?


You can install a postcript printer and then print the result to a file, if
you can print the bitmap on the printer, the driver generates the eps file
for you (I think)

Other Threads