comparison servlet/src/digilib/image/DocuImage.java @ 880:ca6b8c970ea1 jquery

merge from stream
author hertzhaft
date Thu, 17 Mar 2011 20:25:56 +0100
parents fe58284a8dd9
children
comparison
equal deleted inserted replaced
879:b2ec8244b86e 880:ca6b8c970ea1
203 throws ImageOpException; 203 throws ImageOpException;
204 204
205 205
206 /** Operations for colorOps. 206 /** Operations for colorOps.
207 * 207 *
208 * 208 * GRAYSCALE: cast color image to grayscale
209 */ 209 * NTSC_GRAY: convert color image to grayscale using NTSC formula
210 public enum ColorOp {GRAYSCALE, INVERT}; 210 * INVERT: invert colors (every channel separately)
211 * MAP_GRAY_BGR: false color image from grayscale (0: blue, 128: green, 255: red)
212 *
213 */
214 public enum ColorOp {GRAYSCALE, NTSC_GRAY, INVERT, MAP_GRAY_BGR};
211 215
212 /** Changes the colors of the current image. 216 /** Changes the colors of the current image.
213 * 217 *
214 * Changes the colors of the current image. Operations are e.g. 218 * Changes the colors of the current image. Operations are instances of ColorOp:
215 * reduction to grayscale or false-color palettes. 219 *
220 * GRAYSCALE: cast color image to grayscale
221 * NTSC_GRAY: convert color image to grayscale using NTSC formula
222 * INVERT: invert colors (every channel separately)
223 * MAP_GRAY_BGR: false color image from grayscale (0: blue, 128: green, 255: red)
216 * 224 *
217 * @throws ImageOpException 225 * @throws ImageOpException
218 */ 226 */
219 public void colorOp(ColorOp op) throws ImageOpException; 227 public void colorOp(ColorOp op) throws ImageOpException;
220 228