본문으로 건너뛰기

DiffPixels

필드타입무엇인지
dataUint8ClampedArrayUint8List빨강, 초록, 파랑, 알파를 1바이트씩. 길이는 width * height * 4.
widthnumberint
heightnumberint

ImageData와 같은 모양입니다. 캔버스가 돌려준 것을 그대로 넣으면 됩니다.

ui.Image.toByteDataui.ImageByteFormat.rawRgba로 부르면 나오는 모양입니다. 해석해 둔 이미지를 따로 복사하지 않고 엔진에 넣을 수 있습니다.

Released under the MIT License