Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

Surface:blit

Blit a surface.

Method

SYNOPSIS

ret, rect, err = function Surface:blit(surface, srcrect, dstrect)

ARGUMENTS

  • surface, the other surface to blit (see Surface)
  • srcrect, (optional) the source rectangle (see Rect)
  • dstrect, (optional) the destination rectangle (see Rect)

RETURNS

  • ret, true on success or nil
  • rect, the modified dstrect if needed or nil if failed
  • err, the error message
Clone this wiki locally