Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Editing Postscript file

3 views
Skip to first unread message

Hammad...@adobeforums.com

unread,
Feb 18, 2009, 2:13:21 AM2/18/09
to
Hi,

I have an EPS file with a single Polygon object in it, i want to change the fill color of that object. Not in any designer, but programmatically (Microsoft .NET), because i will then use the resulted EPS somewhere else.

I tried a component, but it resulted in a raster EPS, that ofcourse, i dont want.

Does anyone know how do i do it?

Thanks

Eric_...@adobeforums.com

unread,
Mar 9, 2009, 1:51:57 PM3/9/09
to
Do you want to hard code the fill color of the polygon, or do you want the ability to change it dynamically later on via a .NET component?

of course the postScript for setting a color is

C M Y K setcmykcolor

or

R G B setrgbcolor

where each letter parameter is a percentage value of 1 (read .5 for 50%) for its corresponding color. Depends if you like RGB or CMYK color.

so in the postScript code, you could insert or change the color and fill to something like

1 0 0 0 setcmykcolor
fill

which would set the color to blue, then fill the current path.

I am not sure if this is what you are looking for or not.

0 new messages