Article View: adobe.postscript.programming
Article #65Re: stroke and fill
From: Jeffrey H. Coffield
Date: Fri, 25 Jul 2008 13:56
Date: Fri, 25 Jul 2008 13:56
24 lines
2208 bytes
2208 bytes
David_Cristian@adobeforums.com wrote: > I made it work with image dictionary, but I still have a problem with CMYK. When I write the data in the ps file don't i have to make a conversion from the rgb to cmyk ? > > I mean i still have the image represented by the rgb colors for every component.It will not interpret well .. because it will find get the first 4 bytes (that are R G B R) and it willn't work > > saw something like this: > > c = (255 - red)/255; > m = (255 - green)/255; > y = (255 - blue)/255; > > k = min(c,m,y,k); > > So, my question is how do I write the corespondent for CMYK colors from the rgb ones? > > David Aside from letting Postscript handle this, theoretically, if the c, y & m were perfect colors then after you determine k above, you would subtract that value from the c, m & y values. Jeff Coffield
Technical Details
Message-ID:
<pWkik.6642$cn7.4401@flpi145.ffdc.sbc.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!flpi145.ffdc.sbc.com.POSTED!cbb6f965!not-for-mailReferences:
<59b5e90e.-1@webcrossing.la2eafNXanI> <59b5e90e.18@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,59978ad8602309c9 X-Google-Attributes: gid10c61a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!flpi145.ffdc.sbc.com.POSTED!cbb6f965!not-for-mail From: "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 Newsgroups: adobe.postscript.programming Subject: Re: stroke and fill References: <59b5e90e.-1@webcrossing.la2eafNXanI> <59b5e90e.18@webcrossing.la2eafNXanI> In-Reply-To: <59b5e90e.18@webcrossing.la2eafNXanI> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 24 Message-ID: <pWkik.6642$cn7.4401@flpi145.ffdc.sbc.com> NNTP-Posting-Host: 216.103.32.162 X-Complaints-To: abuse@prodigy.net X-Trace: flpi145.ffdc.sbc.com 1216994069 ST000 216.103.32.162 (Fri, 25 Jul 2008 09:54:29 EDT) NNTP-Posting-Date: Fri, 25 Jul 2008 09:54:29 EDT Organization: at&t http://my.att.net/ X-UserInfo1: SCSYQNONVZU_BULXKBHLOFTBTR\B@GXLN@GZ_GYO^RR@ETUCCNSKQFCY@TXDX_WHSVB]ZEJLSNY\^J[CUVSA_QLFC^RQHUPH[P[NRWCCMLSNPOD_ESALHUK@TDFUZHBLJ\XGKL^NXA\EVHSP[D_C^B_^JCX^W]CHBAX]POG@SSAZQ\LE[DCNMUPG_VSC@VJM Date: Fri, 25 Jul 2008 06:56:12 -0700