.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "SDL.blitSurface" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" SDL::blitSurface \- Copy from one surface to another .SH "SYNOPSIS" .B Void blitSurface( \fISDLSurface src, Rect srcrect, SDLSurface dest, Rect destrect\fP .B ")" .SH "ARGUMENTS" .PP .B "src" The source surface .PP .B "srcrect" The portion of the source surface to copy .PP .B "dest" The destination surface .PP .B "destrect" The location on the destination surface to copy to (the width and height of this rectangle are ignored) .SH "DESCRIPTION" .PP Copy a rectangle of pixels from one surface to another, for example from a loaded image to the screen. .IP "" -4 screen = newSurface(640,480,BPP24,false); pic = loadSurface("mypic.bmp"); blitSurface(pic,Rect(0,0,40,40),screen,Rect(200,200,px,py)); updateScreen(screen); .PP If you are copying to the screen surface, remember that these updates will not be displayed until you call .B "SDL.updateScreen"(3kaya) .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "SDL.Rect"(3kaya) .PP .B "SDL.loadSurface"(3kaya) .PP .B "SDL.newSurface"(3kaya) .PP .B "SDL.updateScreen"(3kaya) .PD 0.4v