Lines Matching defs:WritableRaster
46 * a WritableRaster, use one of the createWritableRaster factory methods
49 public class WritableRaster extends Raster {
52 * Constructs a WritableRaster with the given SampleModel. The
53 * WritableRaster's upper left corner is origin and it is the
55 * describe the WritableRaster is automatically created.
63 protected WritableRaster(SampleModel sampleModel,
76 * Constructs a WritableRaster with the given SampleModel and DataBuffer.
77 * The WritableRaster's upper left corner is origin and it is the same
88 protected WritableRaster(SampleModel sampleModel,
102 * Constructs a WritableRaster with the given SampleModel, DataBuffer,
124 protected WritableRaster(SampleModel sampleModel,
128 WritableRaster parent){
132 /** Returns the parent WritableRaster (if any) of this WritableRaster,
134 * @return the parent of this <code>WritableRaster</code>, or
137 public WritableRaster getWritableParent() {
138 return (WritableRaster)parent;
142 * Create a WritableRaster with the same size, SampleModel and DataBuffer
143 * as this one, but with a different location. The new WritableRaster
144 * will possess a reference to the current WritableRaster, accessible
149 * @return a <code>WritableRaster</code> the same as this one except
156 public WritableRaster createWritableTranslatedChild(int childMinX,
163 * Returns a new WritableRaster which shares all or part of this
164 * WritableRaster's DataBuffer. The new WritableRaster will
165 * possess a reference to the current WritableRaster, accessible
169 * Rectangle in this WritableRaster's coordinate space, indicating
172 * WritableRaster.
174 * <p> The new WritableRaster may additionally be translated to a
176 * WritableRaster. The childMinX and childMinY parameters give
178 * returned WritableRaster; the coordinate (childMinX, childMinY)
179 * in the new WritableRaster will map to the same pixel as the
180 * coordinate (parentX, parentY) in the current WritableRaster.
182 * <p> The new WritableRaster may be defined to contain only a
183 * subset of the bands of the current WritableRaster, possibly
186 * WritableRaster in their current order.
188 * <p> To create a new WritableRaster that contains a subregion of
189 * the current WritableRaster, but shares its coordinate system
195 * WritableRaster's coordinates.
197 * WritableRaster's coordinates.
201 * the returned WritableRaster.
203 * the returned WritableRaster.
205 * @return a <code>WritableRaster</code> sharing all or part of the
206 * <code>DataBuffer</code> of this <code>WritableRaster</code>.
217 public WritableRaster createWritableChild(int parentX, int parentY,
250 return new WritableRaster(sm,
290 * The input Raster must be compatible with this WritableRaster
364 * Copies pixels from Raster srcRaster to this WritableRaster. Each pixel
367 * must have the same number of bands as this WritableRaster. The
377 * WritableRaster dstRaster;
407 * Copies pixels from Raster srcRaster to this WritableRaster.
409 * is copied to address (x+dx, y+dy) in this WritableRaster,
411 * srcRaster must have the same number of bands as this WritableRaster.
414 * {@link WritableRaster#setRect(Raster)}.