Processingには、すべてのピクセルの値を含むPImageの配列を取得できるという名前のクラスがあります。int次に、この配列を操作して呼び出すupdatePixels()と、画像に効果が適用されました。
BufferedImage適切なメカニズムで同じことができるかどうか疑問に思っていました。BufferedImage実際にピクセルを取得する方法があることがわかりましたint[]:
public int[] getRGB(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
Returns an array of integer pixels in the default RGB color model (`TYPE_INT_ARGB`) and default sRGB color space, from a portion of the image data.
Color conversion takes place if the default model does not match the image `ColorModel`.
There are only 8-bits of precision for each color component in the returned data when using this method.
これらのピクセルを変更して、適切な変更を に表示するにはどうすればよいBufferedImageですか?
WritableRaster画像のを取得して使用する必要があると思います
public void setPixels(int x,
int y,
int w,
int h,
int[] iArray)
しかし、私はまだ確信が持てません。