readPixels method

Pointer<SdlSurface> readPixels(
  1. Rectangle<double> rect
)

Implementation

Pointer<SdlSurface> readPixels(math.Rectangle<double> rect) {
  var rectPointer = rect.callocInt();
  var result = sdlRenderReadPixels(this, rectPointer);
  calloc.free(rectPointer);
  return result;
}