01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id: PNGSuggestedPaletteEntry.java 447277 2006-09-18 06:19:34Z jeremias $ */
19:
20: package org.apache.xmlgraphics.image.codec.png;
21:
22: import java.io.Serializable;
23:
24: /**
25: * A class representing the fields of a PNG suggested palette entry.
26: *
27: * <p><b> This class is not a committed part of the JAI API. It may
28: * be removed or changed in future releases of JAI.</b>
29: */
30: public class PNGSuggestedPaletteEntry implements Serializable {
31:
32: /** The name of the entry. */
33: public String name;
34:
35: /** The depth of the color samples. */
36: public int sampleDepth;
37:
38: /** The red color value of the entry. */
39: public int red;
40:
41: /** The green color value of the entry. */
42: public int green;
43:
44: /** The blue color value of the entry. */
45: public int blue;
46:
47: /** The alpha opacity value of the entry. */
48: public int alpha;
49:
50: /** The probable frequency of the color in the image. */
51: public int frequency;
52: }
|