Bug 687711, Add ideal CMYK color space to GS resources.
Alex Cherepanov <[email protected]> Tue, 28 Sep 2004 20:53:05 -0400
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
Add a CIEBasedDEFG color space that assumes perfect subtractive CMYK colorants. This color space can be used by applications or users that make similar assumptions. Clean up other color spaces. Bug 687711 [COMMENTS] The perfect CMYK colorants is a PostScript default documented in PLRM. Many unsophisticated applications and users rely on this feature. With the new color space available the users can easily use it as a DefaultCMYK. /DefaultCMYK /IdealCMYK /ColorSpace findresource /ColorSpace defineresource pop _______________________________________________ gs-code-review mailing list [email protected] http://www.ghostscript.com/mailman/listinfo/gs-code-review
687711.diff
(text/plain, 1.5 KB)
Index: gs/Resource/ColorSpace/DefaultCMYK
===================================================================
RCS file: /cvs/ghostscript/gs/Resource/ColorSpace/DefaultCMYK,v
retrieving revision 1.3
diff -b -u -r1.3 DefaultCMYK
--- gs/Resource/ColorSpace/DefaultCMYK 25 Aug 2004 15:56:29 -0000 1.3
+++ gs/Resource/ColorSpace/DefaultCMYK 29 Sep 2004 00:24:41 -0000
@@ -23,14 +23,6 @@
4 dict begin
/WhitePoint [ 0.9505 1.0 1.089 ] def
/Table [ 2 2 2 2
- % Trivial table :
- % [
- % [ < FFFFFF 000000 FFFF00 000000>
- % < FF00FF 000000 FF0000 000000> ]
- % [ < 00FFFF 000000 00FF00 000000>
- % < 0000FF 000000 000000 000000> ]
- % ]
-
% AcrobatReader-compatible table :
[
[ < FFFFFF 000000 FFFF00 000000>
Index: gs/Resource/ColorSpace/DefaultRGB
===================================================================
RCS file: /cvs/ghostscript/gs/Resource/ColorSpace/DefaultRGB,v
retrieving revision 1.3
diff -b -u -r1.3 DefaultRGB
--- gs/Resource/ColorSpace/DefaultRGB 25 Aug 2004 15:56:29 -0000 1.3
+++ gs/Resource/ColorSpace/DefaultRGB 29 Sep 2004 00:24:41 -0000
@@ -22,7 +22,7 @@
[ /CIEBasedABC
3 dict begin
/WhitePoint [ 0.9505 1.0 1.089 ] def
- /DecodeLMN [ { 1.8 exp } bind dup dup ] bind def
+ /DecodeLMN [ { 1.8 exp } bind dup dup ] def
/MatrixLMN [ 0.4439 0.2522 0.0436 0.3341 0.6371 0.1387 0.1725 0.1107 0.9067 ] def
currentdict end
]
IdealCMYK
(text/plain, 1.3 KB)
% Copyright (C) 2003 artofcode LLC. All rights reserved.
%
% This software is provided AS-IS with no warranty, either express or
% implied.
%
% This software is distributed under license and may not be copied,
% modified or distributed except as expressly authorized under the terms
% of the license contained in the file LICENSE in this distribution.
%
% For more information about licensing, please refer to
% http://www.ghostscript.com/licensing/. For information on
% commercial licensing, go to http://www.artifex.com/licensing/ or
% contact Artifex Software, Inc., 101 Lucas Valley Road #110,
% San Rafael, CA 94903, U.S.A., +1(415)492-9861.
% $Id: DefaultCMYK,v 1.3 2004/08/25 15:56:29 alexcher Exp $
% Color space that assumes ideal CMYK colorants.
currentglobal true setglobal
/IdealCMYK
[ /CIEBasedDEFG
4 dict begin
/WhitePoint [ 0.9505 1.0 1.089 ] def
/Table [ 2 2 2 2
[
[ < FFFFFF 000000 FFFF00 000000>
< FF00FF 000000 FF0000 000000> ]
[ < 00FFFF 000000 00FF00 000000>
< 0000FF 000000 000000 000000> ]
]
] def
/DecodeLMN [ { 1.8 exp } bind dup dup ] def
/MatrixLMN [ 0.4439 0.2522 0.0436 0.3341 0.6371 0.1387 0.1725 0.1107 0.9067 ] def
currentdict end
]
/ColorSpace defineresource pop
setglobal