/[classpath]/classpath/java/awt/color/ICC_ColorSpace.java
ViewVC logotype

Diff of /classpath/java/awt/color/ICC_ColorSpace.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ericb, Thu Nov 7 15:40:04 2002 UTC revision 1.5 by mkoch, Tue Jan 14 21:30:38 2003 UTC
# Line 81  public class ICC_ColorSpace extends Colo Line 81  public class ICC_ColorSpace extends Colo
81     */     */
82    private boolean needScaleInit;    private boolean needScaleInit;
83    
84      /**
85       * Constructs a new ICC_ColorSpace from an ICC_Profile object.
86       *
87       * @exception IllegalArgumentException If profile is inappropriate for
88       * representing a ColorSpace.
89       */
90    public ICC_ColorSpace(ICC_Profile profile)    public ICC_ColorSpace(ICC_Profile profile)
91    {    {
92      super(CS_sRGB, profile.getNumComponents());      super(CS_sRGB, profile.getNumComponents());
# Line 92  public class ICC_ColorSpace extends Colo Line 98  public class ICC_ColorSpace extends Colo
98      return thisProfile;      return thisProfile;
99    }    }
100    
101      /**
102       * Transforms a color value assumed to be in this ColorSpace into a value in
103       * the default CS_sRGB color space.
104       *
105       * @exception ArrayIndexOutOfBoundsException If array length is not at least
106       * the number of components in this ColorSpace.
107       */
108    public float[] toRGB(float[] colorvalue)    public float[] toRGB(float[] colorvalue)
109    {    {
110        if (colorvalue.length < numComponents)
111          throw new IllegalArgumentException ();
112          
113      // FIXME: Always assumes sRGB:      // FIXME: Always assumes sRGB:
114      return colorvalue;      return colorvalue;
115    }    }
116    
117      /**
118       * Transforms a color value assumed to be in the default CS_sRGB color space
119       * into this ColorSpace.
120       *
121       * @exception ArrayIndexOutOfBoundsException If array length is not at
122       * least 3.
123       */
124    public float[] fromRGB(float[] rgbvalue)    public float[] fromRGB(float[] rgbvalue)
125    {    {
126        if (rgbvalue.length < 3)
127          throw new IllegalArgumentException ();
128        
129      // FIXME: Always assumes sRGB:      // FIXME: Always assumes sRGB:
130      return rgbvalue;      return rgbvalue;
131    }    }
132    
133      /**
134       * Transforms a color value assumed to be in this ColorSpace into the
135       * CS_CIEXYZ conversion color space.
136       *
137       * @exception ArrayIndexOutOfBoundsException If array length is not at
138       * least the number of components in this ColorSpace.
139       */
140    public float[] toCIEXYZ(float[] colorvalue)    public float[] toCIEXYZ(float[] colorvalue)
141    {    {
142      // FIXME: Not implemented      // FIXME: Not implemented

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26