Lines Matching defs:data

41  * pixels into one data element.  Pixels are not allowed to span data elements.
42 * The data type can be DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT,
44 * and a power of 2 number of pixels must fit exactly in one data element.
46 * stride is in data elements and the last several data elements might be
52 * <code>x,&nbsp;y</code> from <code>DataBuffer</code> <code>data</code>
53 * and storing the pixel data in data elements of type
58 * int element = data.getElem(y*scanlineStride + bitnum/dataElementSize);
70 /** Bitmask that extracts the rightmost pixel of a data element. */
74 * The number of pixels that fit in a data element. Also used
79 /** The size of a data element in bits. */
82 /** The bit offset into the data array where the first pixel begins.
86 /** ScanlineStride of the data buffer described in data array elements. */
91 * specified data type, width, height and number of bits per pixel.
92 * @param dataType the data type for storing samples
94 * image data described
96 * image data described
115 throw new IllegalArgumentException("Unsupported data type "+
122 * specified data type, width, height, number of bits per pixel,
123 * scanline stride and data bit offset.
124 * @param dataType the data type for storing samples
126 * image data described
128 * image data described
130 * @param scanlineStride the line stride of the image data
131 * @param dataBitOffset the data bit offset for the region of image
132 * data described
135 * pixels do not fit in one data element.
151 throw new IllegalArgumentException("Unsupported data type "+
163 "span data element boundaries");
173 * same storage data type and number of bits per pixel as this
178 * and with the same storage data type and number of bits per pixel
192 * <code>DataBuffer</code> object's data type and size
195 * @return a <code>DataBuffer</code> with the same data type and
217 * Returns the number of data elements needed to transfer one pixel
221 * @return the number of data elements.
246 * Returns the offset of pixel (x,&nbsp;y) in data array elements.
258 * Returns the offset, in bits, into the data element in which it is
288 * Returns the data bit offset in bits.
347 * @param data the <code>DataBuffer</code> containing the image
348 * data
355 public int getSample(int x, int y, int b, DataBuffer data) {
363 int element = data.getElem(y*scanlineStride + bitnum/dataElementSize);
379 * @param data the <code>DataBuffer</code> where image data is stored
385 DataBuffer data) {
396 int element = data.getElem(index);
399 data.setElem(index,element);
403 * Returns data for a single pixel in a primitive array of type
410 * correct primitive data type.
412 * The following code illustrates transferring data for one pixel from
437 * <code>null</code> and is not large enough to hold the pixel data.
440 * @param obj a primitive array in which to return the pixel data or
442 * @param data the <code>DataBuffer</code> containing the image data.
443 * @return an <code>Object</code> containing data for the specified
449 * not large enough to hold the pixel data
452 public Object getDataElements(int x, int y, Object obj, DataBuffer data) {
475 element = data.getElem(y*scanlineStride +
491 element = data.getElem(y*scanlineStride +
507 element = data.getElem(y*scanlineStride +
527 * @param data the <code>DataBuffer</code> where image data is stored
533 public int[] getPixel(int x, int y, int iArray[], DataBuffer data) {
545 int element = data.getElem(y*scanlineStride + bitnum/dataElementSize);
553 * Sets the data for a single pixel in the specified
556 * only the first element of the array holds valid data,
561 * The following code illustrates transferring data for one pixel from
585 * enough to hold the pixel data.
588 * @param obj a primitive array containing pixel data
589 * @param data the <code>DataBuffer</code> containing the image data
592 public void setDataElements(int x, int y, Object obj, DataBuffer data) {
603 int element = data.getElem(index);
612 data.setElem(index, element);
619 data.setElem(index, element);
626 data.setElem(index, element);
639 * @param data the <code>DataBuffer</code> containing the image data
642 public void setPixel(int x, int y, int[] iArray, DataBuffer data) {
651 int element = data.getElem(index);
654 data.setElem(index,element);