Page 1 of 1

How do I copy a part of a Surface

PostPosted: Jun 24, 2002 @ 9:22pm
by jbella
Hi!

I need to copy a part of a surface to a new surface. The purpose is to store several images(tiles) in one so that i only need one graphics file.

It was possible in the old version of PocketFrog, that I used until now, but how do I do it in version 0.5.2 (or when ever it was changed). In the old version i used the feature to Blit a Rect from one surface to another.

Regards Johan Bellander

PostPosted: Jun 24, 2002 @ 9:35pm
by Pam
Hi,

Take a look in this thread:



There's a code snippet for changing the rendering target to blit from one surface to another.

Pam

PostPosted: Jun 25, 2002 @ 12:58am
by Kzinti
You still use Blit and specify a rectangle... Take a look at the thread referred by Pam.

Thanks

PostPosted: Jun 25, 2002 @ 12:28pm
by jbella