01: /*
02: * $RCSfile: FPXDecodeParam.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:55:29 $
10: * $State: Exp $
11: */
12: package com.sun.media.jai.codec;
13:
14: /**
15: * An instance of <code>ImageDecodeParam</code> for decoding images
16: * in the FlashPIX format.
17: *
18: * <p><b> This class is not a committed part of the JAI API. It may
19: * be removed or changed in future releases of JAI.</b>
20: */
21: public class FPXDecodeParam implements ImageDecodeParam {
22:
23: private int resolution = -1;
24:
25: /** Constructs a default instance of <code>FPXDecodeParam</code>. */
26: public FPXDecodeParam() {
27: }
28:
29: /**
30: * Constructs an instance of <code>FPXDecodeParam</code>
31: * to decode a given resolution.
32: *
33: * @param resolution The resolution number to be decoded.
34: */
35: public FPXDecodeParam(int resolution) {
36: this .resolution = resolution;
37: }
38:
39: /**
40: * Sets the resolution to be decoded.
41: *
42: * @param resolution The resolution number to be decoded.
43: */
44: public void setResolution(int resolution) {
45: this .resolution = resolution;
46: }
47:
48: /**
49: * Returns the resolution to be decoded.
50: */
51: public int getResolution() {
52: return resolution;
53: }
54: }
|