[id] = CopyBGPic(source, dest)
source
and
creates a copy of it as background picture dest
. If you specify Nil in
the dest
argument, this function will choose an identifier for
this background picture automatically and return it to you. The new
background picture is independent from the old one so you could free the
source background picture after it has been cloned.
Please note that only the plain graphics data of the background picture
will be cloned. CopyBGPic()
will not clone any layers, sprites, or
buttons attached to the background picture.
CopyBGPic(1, 10) FreeBGPic(1)The above code creates a new background picture 10 which contains the same graphics data as background picture 1. Then it frees background picture 1 because it is no longer needed.