Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / rendering / RenderingIntent.idl
blob6c215bcf964a1329704651b2f0c668b73dad0a7c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: RenderingIntent.idl,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_rendering_RenderingIntent_idl__
31 #define __com_sun_star_rendering_RenderingIntent_idl__
33 module com { module sun { module star { module rendering {
35 /** The rendering intent for a color space.<p>
37 The rendering intent for a color space mostly determines how
38 out-of-gamut color is treated. See <a
39 href="http://en.wikipedia.org/wiki/Rendering_intent">Wikipedia</a>
40 for a thorough explanation.
42 @since OOo 2.0.0
44 constants RenderingIntent
46 /** Also known as the image intent, this rendering intent
47 aims to preserve the visual relationship between
48 colors in a way that is perceived as natural to the
49 human eye, although the color values themselves may
50 change. This intent is most suitable for photographic
51 images.
53 const byte PERCEPTUAL=0;
55 //-------------------------------------------------------------------------
57 /** The rendering intent for business graphics that
58 maintains vivid color at the expense of accurate
59 color. It scales the source gamut to the destination
60 gamut but preserves relative saturation instead of
61 hue, so when scaling to a smaller gamut, hues may
62 shift. This rendering intent is primarily designed for
63 business graphics, where bright saturated colors are
64 more important than the exact relationship between
65 colors (such as in a photographic image).
67 const byte SATURATION=1;
69 /** The rendering intent almost identical to Absolute
70 Colorimetric except for the following difference:
71 Relative Colorimetric compares the white point
72 (extreme highlight) of the source color space to that
73 of the destination color space and shifts all colors
74 accordingly.
76 const byte RELATIVE_COLORIMETRIC=2;
78 /** The rendering intent that leaves colors that fall
79 inside the destination gamut unchanged. Out of gamut
80 colors are clipped. No scaling of colors to
81 destination white point is performed. This intent aims
82 to maintain color accuracy at the expense of
83 preserving relationships between colors, and is useful
84 for seeing how output will look on a non-neutral
85 substrate.
87 const byte ABSOLUTE_COLORIMETRIC=3;
90 }; }; }; };
92 #endif