Surface.blitScaled

Wraps SDL_BlitScaled which blits/draws a dsdl2.Surface on top of the dsdl2.Surface at a specific point as the top-left point of the drawn dsdl2.Surface with scaling

  1. void blitScaled(Surface source, Rect destRect)
  2. void blitScaled(Surface source, Rect destRect, Rect srcRect)
    class Surface
    @trusted
    void
    blitScaled

Parameters

source Surface

dsdl2.Surface to blit/draw

destRect Rect

dsdl2.Rect of where source should be drawn (squeezes/stretches to the dimensions as well)

srcRect Rect

the clipping rect of source specifying which part is drawn

Meta