1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_rendering_ColorComponentTag_idl__ 24#define __com_sun_star_rendering_ColorComponentTag_idl__ 25 26module com { module sun { module star { module rendering { 27 28/** A collection of tags for the individual components of a color.<p> 29 30 Color components usually corrspond to physical attributes like the 31 amount of red colorant contained in an output color. This constant 32 field enumerates the most common ones. 33 34 @since OpenOffice 2.3 35 */ 36constants ColorComponentTag 37{ 38 /// Unspecified device color value 39 const byte DEVICE=0; 40 41 /// Red colorant from RGB color space 42 const byte RGB_RED=1; 43 44 /// Green colorant from RGB color space 45 const byte RGB_GREEN=2; 46 47 /// Blue colorant from RGB color space 48 const byte RGB_BLUE=3; 49 50 /// Cyan colorant from CMYK color space 51 const byte CMYK_CYAN=4; 52 53 /// Magenta colorant from CMYK color space 54 const byte CMYK_MAGENTA=5; 55 56 /// Yellow colorant from CMYK color space 57 const byte CMYK_YELLOW=6; 58 59 /// Black colorant from CMYK color space 60 const byte CMYK_BLACK=7; 61 62 /// Orange colorant from hexachrome color space 63 const byte CMYKOG_ORANGE=8; 64 65 /// Green colorant from hexachrome color space 66 const byte CMYKOG_GREEN=9; 67 68 /// Arbitray extra spot color, e.g. pantone 69 const byte SPOT=10; 70 71 /// Index into palette 72 const byte INDEX=11; 73 74 /// Alpha channel 75 const byte ALPHA=12; 76 77 /// Grey value. Used for monochrome color spaces 78 const byte GREY=13; 79 80 /** Premultiplied alpha channel<p> 81 82 Note that this alpha format actually influences the other color 83 components, in that their values are pre-multiplied with the 84 alpha value.<p> 85 */ 86 const byte PREMULTIPLIED_ALPHA=14; 87 88 /// CieXYZ X value 89 const byte CIEXYZ_X=15; 90 91 /// CieXYZ Y value 92 const byte CIEXYZ_Y=16; 93 94 /// CieXYZ Z value 95 const byte CIEXYZ_Z=17; 96 97 /// CieLab L value 98 const byte CIELAB_L=18; 99 100 /// CieLab a value 101 const byte CIELAB_A=19; 102 103 /// CieLab b value 104 const byte CIELAB_B=20; 105 106 /// HSV H value 107 const byte HSV_H=21; 108 109 /// HSV S value 110 const byte HSV_S=22; 111 112 /// HSV V value 113 const byte HSV_V=23; 114 115 /// HSL H value 116 const byte HSL_H=24; 117 118 /// HSL S value 119 const byte HSL_S=25; 120 121 /// HSL L value 122 const byte HSL_L=26; 123 124 /// YCbCr Y value 125 const byte YCBCR_Y=27; 126 127 /// YCbCr Cb value 128 const byte YCBCR_CB=28; 129 130 /// YCbCr Cr value 131 const byte YCBCR_CR=29; 132}; 133 134}; }; }; }; 135 136#endif 137