chickadee » sdl2 » blit-scaled!

blit-scaled! src src-rect dest dest-rectprocedure

Blit (copy) image data from the src (source) sdl2:surface to the dst (destination) sdl2:surface, scaling the image if needed. See SDL_BlitScaled.

  • src-rect may be an sdl2:rect to blit part of src, or #f to blit all of src.
  • dst-rect may be an sdl2:rect to specify where in dst the image data should be blitted, or #f to copy into the entire dst surface.

Signals an exception of kind (exn sdl2) if an error occurs.