Hidden(MetaData)
ImageDataimageDatacreateImageData(Numberwidth, Numberheight | ImageDataimageData)
createImageData()
는(은) CanvasRenderingContext2D.prototype.createImageData()
와(과) 동일한 작동 방식을 갖는다. 따라서 CanvasRenderingContext2D.prototype.createImageData()
레퍼런스를 그대로 보여주는 것을 참고(주의)하기 바란다.
지정된 치수를 갖는 새로운 ImageData
객체를 생성한다.
매개 변수
createImageData()
는(은) CanvasRenderingContext2D.prototype.createImageData()
와(과) 동일한 작동 방식을 갖는다. 따라서 CanvasRenderingContext2D.prototype.createImageData()
레퍼런스를 그대로 보여주는 것을 참고(주의)하기 바란다.
- Use of parameters type 1
- Numberwidth필수
새로 생성할 ImageData
객체의 가로 크기를 지정한다.
- Numberheight필수
새로 생성할 ImageData
객체의 세로 크기를 지정한다.
- Use of parameters type 2
- ImageDataimageData필수
가로와 세로 크기를 복사할 기존의 ImageData
객체를 지정한다. 이미지 자체는 복사되지 않는다.
반환
createImageData()
는(은) CanvasRenderingContext2D.prototype.createImageData()
와(과) 동일한 작동 방식을 갖는다. 따라서 CanvasRenderingContext2D.prototype.createImageData()
레퍼런스를 그대로 보여주는 것을 참고(주의)하기 바란다.
- ImageDataimageData
새로운 ImageData
객체를 반환한다.
지원 웹브라우저