/[classpath]/classpath/java/awt/image/Raster.java
ViewVC logotype

Diff of /classpath/java/awt/image/Raster.java

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

revision 1.6 by mkoch, Wed Sep 22 13:03:28 2004 UTC revision 1.7 by smarothy, Sat Nov 6 16:24:37 2004 UTC
# Line 128  public class Raster Line 128  public class Raster
128                                                    int w, int h, int bands,                                                    int w, int h, int bands,
129                                                    Point location)                                                    Point location)
130    {    {
131      // FIXME: Implement;      SampleModel sm = new BandedSampleModel(dataType, w, h, bands);
132      throw new UnsupportedOperationException("not implemented yet");      return createWritableRaster(sm, location);
133    }    }
134    
135    public static WritableRaster createBandedRaster(int dataType,    public static WritableRaster createBandedRaster(int dataType,
# Line 139  public class Raster Line 139  public class Raster
139                                                    int[] bandOffsets,                                                    int[] bandOffsets,
140                                                    Point location)                                                    Point location)
141    {    {
142      // FIXME: Implement;      SampleModel sm = new BandedSampleModel(dataType, w, h, scanlineStride,
143      throw new UnsupportedOperationException("not implemented yet");                                             bankIndices, bandOffsets);
144        return createWritableRaster(sm, location);
145    }    }
146        
147    public static WritableRaster createPackedRaster(int dataType,    public static WritableRaster createPackedRaster(int dataType,
# Line 204  public class Raster Line 205  public class Raster
205                                      int[] bandOffsets,                                      int[] bandOffsets,
206                                      Point location)                                      Point location)
207    {    {
208      // FIXME: Implement;      SampleModel sm = new BandedSampleModel(dataBuffer.getDataType(),
209      throw new UnsupportedOperationException("not implemented yet");                                             w, h, scanlineStride,
210                                               bankIndices, bandOffsets);
211        return createWritableRaster(sm, dataBuffer, location);
212    }    }
213        
214    public static WritableRaster    public static WritableRaster
# Line 213  public class Raster Line 216  public class Raster
216                       int w, int h,                       int w, int h,
217                       int scanlineStride,                       int scanlineStride,
218                       int[] bandMasks,                       int[] bandMasks,
219                       Point location) {                       Point location)
220     {
221      SampleModel sm =      SampleModel sm =
222        new SinglePixelPackedSampleModel(dataBuffer.getDataType(),        new SinglePixelPackedSampleModel(dataBuffer.getDataType(),
223                                         w, h,                                         w, h,

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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