Thread View: adobe.postscript.programming
2 messages
2 total messages
Started by Hammad_Abbas
Wed, 18 Feb 2009 07:13
Editing Postscript file
Author: Hammad_Abbas
Date: Wed, 18 Feb 2009 07:13
Date: Wed, 18 Feb 2009 07:13
9 lines
890 bytes
890 bytes
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
Re: Editing Postscript file
Author: Eric_Burton
Date: Mon, 09 Mar 2009 17:51
Date: Mon, 09 Mar 2009 17:51
20 lines
1231 bytes
1231 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads