Online etc.!!!!!! Be urgent!!!!!!
CodePudding user response:
Get canvas graphics data, context. GetImageData (x, y, width, height),This method returns an ImageData object, the object is mainly has three attributes:
ImageData. Width: how many in a row element
ImageData. Height: how much per column element
ImageData. Data: one dimensional array, store the retrieved from the canvas RGBA values of each pixel, the array for each pixel preserved the four values - red, green, blue and alpha transparency, each value between 0 to 255, as a result, the canvas of each pixel in the array becomes a four integer values, and an array of filling the order from left to right, from top to bottom,
Determine pixel values are 255 is completely blank, how can ask a white pixel values in order to be effective
CodePudding user response:
The building Lord found the method? I'm stuck in this place, to solve the thank you!CodePudding user response: