-next-
Copying Images

Now that the image has been loaded and converted, you can draw it into your display...

SDL_BlitSurface(image, &src_rect,
                screen, &dest_rect);

src_rect is an SDL_Rect containing the rectangle from which we're copying from the source surface ("image").

dest_rect is an SDL_Rect containing the rectangle into which we're copying into the destination surface ("screen").

For example:

src_rect.x = 0;
src_rect.y = 0;
src_rect.w = image -> w;
src_rect.h = image -> h;
dest_rect.x = 100;
dest_rect.y = 200;
dest_rect.w = image -> w;
dest_rect.h = image -> h;