Lines Matching defs:data

40  *  in an image.  All image data is expressed as a collection of pixels.
84 /** Width in pixels of the region of image data that this SampleModel
89 /** Height in pixels of the region of image data that this SampleModel
94 /** Number of bands of the image data that this SampleModel describes. */
97 /** Data type of the DataBuffer storing the pixel data.
110 * @param dataType The data type of the DataBuffer storing the pixel data.
111 * @param w The width (in pixels) of the region of image data.
112 * @param h The height (in pixels) of the region of image data.
113 * @param numBands The number of bands of the image data.
120 * one of the supported data types
153 * @return the width in pixels of the region of image data
161 * @return the height in pixels of the region of image data
168 /** Returns the total number of bands of image data.
169 * @return the number of bands of image data that this
176 /** Returns the number of data elements needed to transfer a pixel
184 * @return the number of data elements.
193 /** Returns the data type of the DataBuffer storing the pixel data.
194 * @return the data type.
229 * @param data The DataBuffer containing the image data
233 * @throws NullPointerException if data is null.
237 public int[] getPixel(int x, int y, int iArray[], DataBuffer data) {
247 pixels[i] = getSample(x, y, i, data);
254 * Returns data for a single pixel in a primitive array of type
255 * TransferType. For image data supported by the Java 2D API, this
259 * thus increasing efficiency for data transfers. Generally, obj
261 * automatically and will be of the right primitive data type.
263 * The following code illustrates transferring data for one pixel from
283 * the pixel data.
287 * the pixel data.
288 * @param data The DataBuffer containing the image data.
289 * @return the data elements for the specified pixel.
295 * @throws NullPointerException if data is null.
300 Object obj, DataBuffer data);
303 * Returns the pixel data for the specified rectangle of pixels in a
305 * For image data supported by the Java 2D API, this
309 * thus increasing efficiency for data transfers. Generally, obj
311 * automatically and will be of the right primitive data type.
313 * The following code illustrates transferring data for a rectangular
335 * the pixel data.
341 * the pixel data.
342 * @param data The DataBuffer containing the image data.
343 * @return the data elements for the specified region of pixels.
349 * @throws NullPointerException if data is null.
354 Object obj, DataBuffer data) {
384 o = getDataElements(j, i, o, data);
407 o = getDataElements(j, i, o, data);
430 o = getDataElements(j, i, o, data);
453 o = getDataElements(j, i, o, data);
476 o = getDataElements(j, i, o, data);
492 * Sets the data for a single pixel in the specified DataBuffer from a
493 * primitive array of type TransferType. For image data supported by
497 * may be in a packed format, thus increasing efficiency for data
500 * The following code illustrates transferring data for one pixel from
520 * not in bounds, or if obj is not large enough to hold the pixel data.
523 * @param obj A primitive array containing pixel data.
524 * @param data The DataBuffer containing the image data.
530 * @throws NullPointerException if data is null.
535 Object obj, DataBuffer data);
538 * Sets the data for a rectangle of pixels in the specified DataBuffer
539 * from a primitive array of type TransferType. For image data supported
543 * may be in a packed format, thus increasing efficiency for data
546 * The following code illustrates transferring data for a rectangular
567 * not in bounds, or if obj is not large enough to hold the pixel data.
572 * @param obj A primitive array containing pixel data.
573 * @param data The DataBuffer containing the image data.
579 * @throws NullPointerException if data is null.
584 Object obj, DataBuffer data) {
613 setDataElements(j, i, btemp, data);
630 setDataElements(j, i, stemp, data);
646 setDataElements(j, i, itemp, data);
662 setDataElements(j, i, ftemp, data);
678 setDataElements(j, i, dtemp, data);
693 * @param data The DataBuffer containing the image data.
697 * @throws NullPointerException if data is null.
702 DataBuffer data) {
712 pixels[i] = getSampleFloat(x, y, i, data);
724 * @param data The DataBuffer containing the image data.
728 * @throws NullPointerException if data is null.
733 DataBuffer data) {
743 pixels[i] = getSampleDouble(x, y, i, data);
758 * @param data The DataBuffer containing the image data.
762 * @throws NullPointerException if data is null.
767 int iArray[], DataBuffer data) {
788 pixels[Offset++] = getSample(j, i, k, data);
806 * @param data The DataBuffer containing the image data.
810 * @throws NullPointerException if data is null.
815 float fArray[], DataBuffer data) {
836 pixels[Offset++] = getSampleFloat(j, i, k, data);
854 * @param data The DataBuffer containing the image data.
858 * @throws NullPointerException if data is null.
863 double dArray[], DataBuffer data) {
884 pixels[Offset++] = getSampleDouble(j, i, k, data);
901 * @param data The DataBuffer containing the image data.
905 * @throws NullPointerException if data is null.
909 public abstract int getSample(int x, int y, int b, DataBuffer data);
920 * @param data The DataBuffer containing the image data.
923 * @throws NullPointerException if data is null.
927 public float getSampleFloat(int x, int y, int b, DataBuffer data) {
930 sample = (float) getSample(x, y, b, data);
942 * @param data The DataBuffer containing the image data.
945 * @throws NullPointerException if data is null.
949 public double getSampleDouble(int x, int y, int b, DataBuffer data) {
953 sample = (double) getSample(x, y, b, data);
968 * @param data The DataBuffer containing the image data.
973 * @throws NullPointerException if data is null.
979 int iArray[], DataBuffer data) {
998 pixels[Offset++] = getSample(j, i, b, data);
1016 * @param data The DataBuffer containing the image data.
1021 * @throws NullPointerException if data is null.
1028 DataBuffer data) {
1047 pixels[Offset++] = getSampleFloat(j, i, b, data);
1065 * @param data The DataBuffer containing the image data.
1070 * @throws NullPointerException if data is null.
1077 DataBuffer data) {
1096 pixels[Offset++] = getSampleDouble(j, i, b, data);
1110 * @param data The DataBuffer containing the image data.
1113 * @throws NullPointerException if iArray or data is null.
1117 public void setPixel(int x, int y, int iArray[], DataBuffer data) {
1120 setSample(x, y, i, iArray[i], data);
1130 * @param data The DataBuffer containing the image data.
1133 * @throws NullPointerException if fArray or data is null.
1137 public void setPixel(int x, int y, float fArray[], DataBuffer data) {
1140 setSample(x, y, i, fArray[i], data);
1149 * @param data The DataBuffer containing the image data.
1152 * @throws NullPointerException if dArray or data is null.
1156 public void setPixel(int x, int y, double dArray[], DataBuffer data) {
1159 setSample(x, y, i, dArray[i], data);
1172 * @param data The DataBuffer containing the image data.
1175 * @throws NullPointerException if iArray or data is null.
1180 int iArray[], DataBuffer data) {
1194 setSample(j, i, k, iArray[Offset++], data);
1210 * @param data The DataBuffer containing the image data.
1213 * @throws NullPointerException if fArray or data is null.
1218 float fArray[], DataBuffer data) {
1232 setSample(j, i, k, fArray[Offset++], data);
1248 * @param data The DataBuffer containing the image data.
1251 * @throws NullPointerException if dArray or data is null.
1256 double dArray[], DataBuffer data) {
1270 setSample(j, i, k, dArray[Offset++], data);
1285 * @param data The DataBuffer containing the image data.
1288 * @throws NullPointerException if data is null.
1294 DataBuffer data);
1309 * @param data The DataBuffer containing the image data.
1312 * @throws NullPointerException if data is null.
1318 DataBuffer data) {
1321 setSample(x, y, b, sample, data);
1337 * @param data The DataBuffer containing the image data.
1340 * @throws NullPointerException if data is null.
1346 DataBuffer data) {
1349 setSample(x, y, b, sample, data);
1363 * @param data The DataBuffer containing the image data.
1366 * @throws NullPointerException if iArray or data is null.
1372 int iArray[], DataBuffer data) {
1385 setSample(j, i, b, iArray[Offset++], data);
1401 * @param data The DataBuffer containing the image data.
1404 * @throws NullPointerException if fArray or data is null.
1410 float fArray[], DataBuffer data) {
1423 setSample(j, i, b, fArray[Offset++], data);
1439 * @param data The DataBuffer containing the image data.
1442 * @throws NullPointerException if dArray or data is null.
1448 double dArray[], DataBuffer data) {
1462 setSample(j, i, b, dArray[Offset++], data);
1468 * Creates a SampleModel which describes data in this SampleModel's
1470 * @param w the width of the image data
1471 * @param h the height of the image data
1473 * data as this <code>SampleModel</code>, but with a