java.awt.image
Class MacWritableByteRaster
java.lang.Object
|
+--java.awt.image.Raster
|
+--java.awt.image.WritableRaster
|
+--java.awt.image.MacWritableByteRaster
- public class MacWritableByteRaster
- extends WritableRaster
Fields inherited from class java.awt.image.Raster |
dataBuffer, height, minX, minY, numBands, numDataElements, parent, sampleModel, sampleModelTranslateX, sampleModelTranslateY, width |
Method Summary |
void |
setDataElements(int x,
int y,
int w,
int h,
Object obj)
Stores an array of data elements into the specified rectangular
region. |
Methods inherited from class java.awt.image.WritableRaster |
createWritableChild, createWritableTranslatedChild, getWritableParent, setDataElements, setDataElements, setPixel, setPixel, setPixel, setPixels, setPixels, setPixels, setRect, setRect, setSample, setSample, setSample, setSamples, setSamples, setSamples |
Methods inherited from class java.awt.image.Raster |
createBandedRaster, createBandedRaster, createBandedRaster, createChild, createCompatibleWritableRaster, createCompatibleWritableRaster, createCompatibleWritableRaster, createCompatibleWritableRaster, createInterleavedRaster, createInterleavedRaster, createInterleavedRaster, createPackedRaster, createPackedRaster, createPackedRaster, createPackedRaster, createRaster, createTranslatedChild, createWritableRaster, createWritableRaster, getBounds, getDataBuffer, getDataElements, getDataElements, getHeight, getMinX, getMinY, getNumBands, getNumDataElements, getParent, getPixel, getPixel, getPixel, getPixels, getPixels, getPixels, getSample, getSampleDouble, getSampleFloat, getSampleModel, getSampleModelTranslateX, getSampleModelTranslateY, getSamples, getSamples, getSamples, getTransferType, getWidth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MacWritableByteRaster
public MacWritableByteRaster(SampleModel sampleModel,
DataBuffer dataBuffer,
Point origin)
setDataElements
public void setDataElements(int x,
int y,
int w,
int h,
Object obj)
- Stores an array of data elements into the specified rectangular
region.
There will be no explicit bounds checking on the parameters.
An ArrayOutOfBounds exception will be thrown at runtime
if data outside of the array is accessed.
A ClassCastException will be thrown if the input object is non null
and references anything other than an array of transferType.
The data elements in the
data array are assumed to be packed. That is, a data element
for the nth band at location (x2, y2) would be found at:
inData[((y2-y)*w + (x2-x))*numDataElements + n]
- Overrides:
setDataElements
in class WritableRaster
- Parameters:
x
- The X coordinate of the upper left pixel location.y
- The Y coordinate of the upper left pixel location.w
- Width of the pixel rectangle.h
- Height of the pixel rectangle.inData
- An object reference to an array of type defined by
getTransferType() and length w*h*getNumDataElements()
containing the pixel data to place between x,y and
x+h, y+h.
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.