173 * pixel data 174 * @param scanlineStride the distance between the pixel data for the 175 * start of one row of data in the buffer to the start of the 176 * next row of data 177 * 178 * @throws java.lang.NullPointerException if @{code pixelformat} or {@code buffer} is {@code null} 179 */ 180 public void setPixels(int x, int y, int w, int h, 181 PixelFormat<IntBuffer> pixelformat, 182 int buffer[], int offset, int scanlineStride); 183 184 /** 185 * Stores pixel data retrieved from a {@code PixelReader} instance 186 * into a rectangular region of the surface. 187 * The data for the pixel on the surface at {@code (dstx, dsty)} 188 * will be retrieved from the {@code reader} from its location 189 * {@code (srcx, srcy)}. 190 * This method performs an operation which is semantically equivalent to 191 * (though likely much faster than) this pseudo-code: 192 * <pre> 193 * for (int y = 0; y < h, y++) { 194 * for (int x = 0; x < w; x++) { 195 * setArgb(dstx + x, dsty + y, 196 * reader.getArgb(srcx + x, srcy + y)); 197 * } 198 * } 199 * </pre> 200 * 201 * 202 * @param dstx the X coordinate of the rectangular region to write 203 * @param dsty the Y coordinate of the rectangular region to write 204 * @param w the width of the rectangular region to write 205 * @param h the height of the rectangular region to write 206 * @param reader the {@link PixelReader} used to get the pixel data 207 * to write 208 * @param srcx the X coordinate of the data to read from {@code reader} 209 * @param srcy the Y coordinate of the data to read from {@code reader} 210 * 211 * @throws java.lang.NullPointerException if @{code reader} is {@code null} 212 */ 213 public void setPixels(int dstx, int dsty, int w, int h, 214 PixelReader reader, int srcx, int srcy); | 173 * pixel data 174 * @param scanlineStride the distance between the pixel data for the 175 * start of one row of data in the buffer to the start of the 176 * next row of data 177 * 178 * @throws java.lang.NullPointerException if @{code pixelformat} or {@code buffer} is {@code null} 179 */ 180 public void setPixels(int x, int y, int w, int h, 181 PixelFormat<IntBuffer> pixelformat, 182 int buffer[], int offset, int scanlineStride); 183 184 /** 185 * Stores pixel data retrieved from a {@code PixelReader} instance 186 * into a rectangular region of the surface. 187 * The data for the pixel on the surface at {@code (dstx, dsty)} 188 * will be retrieved from the {@code reader} from its location 189 * {@code (srcx, srcy)}. 190 * This method performs an operation which is semantically equivalent to 191 * (though likely much faster than) this pseudo-code: 192 * <pre> 193 * for (int y = 0; y < h, y++) { 194 * for (int x = 0; x < w; x++) { 195 * setArgb(dstx + x, dsty + y, 196 * reader.getArgb(srcx + x, srcy + y)); 197 * } 198 * } 199 * </pre> 200 * 201 * 202 * @param dstx the X coordinate of the rectangular region to write 203 * @param dsty the Y coordinate of the rectangular region to write 204 * @param w the width of the rectangular region to write 205 * @param h the height of the rectangular region to write 206 * @param reader the {@link PixelReader} used to get the pixel data 207 * to write 208 * @param srcx the X coordinate of the data to read from {@code reader} 209 * @param srcy the Y coordinate of the data to read from {@code reader} 210 * 211 * @throws java.lang.NullPointerException if @{code reader} is {@code null} 212 */ 213 public void setPixels(int dstx, int dsty, int w, int h, 214 PixelReader reader, int srcx, int srcy); |