🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #57

Re: stroke and fill

#57
From: David_Cristian
Date: Fri, 25 Jul 2008 08:35
15 lines
1200 bytes
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
Technical Details
Message-ID: <59b5e90e.18@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing
References: <59b5e90e.-1@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
From: David_Cristian@adobeforums.com
Newsgroups: adobe.postscript.programming
Subject: Re: stroke and fill
Message-ID: <59b5e90e.18@webcrossing.la2eafNXanI>
Date: Fri, 25 Jul 2008 01:35:58 -0700
References: <59b5e90e.-1@webcrossing.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!news4us.nl!webcrossing