PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How do I copy a part of a Surface

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
Hi,

Take a look in this thread:

http://forums.pocketmatrix.com/viewtopic.php?t=6212

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

Pam
You still use Blit and specify a rectangle... Take a look at the thread referred by Pam.
jbella · 25 Jun 2002, 11:28 UTC — Thanks
Thanks alot, I had missed that thread..