ImageData createImageData()

Source

ImageData createImageData() {
  var rect = sourceRectangle;
  var context = renderTexture.canvas.context2D;
  return context.createImageData(rect.width, rect.height);
}