레퍼런스 updatePixels()

updatePixels()

Updates the canvas with the RGBA values in the pixels array.

updatePixels() only needs to be called after changing values in the pixels array. Such changes can be made directly after calling loadPixels() or by calling set().

예제

구문

updatePixels([x], [y], [w], [h])

매개변수

x
Number:

x-coordinate of the upper-left corner of region to update.

y
Number:

y-coordinate of the upper-left corner of region to update.

w
Number:

width of region to update.

h
Number:

height of region to update.

This page is generated from the comments in src/image/pixels.js . Please feel free to edit it and submit a pull request!

관련 레퍼런스