CopySprite()

Syntax

Result = CopySprite(#Sprite1, #Sprite2 [, Mode])
Description
Copy the #Sprite1 to #Sprite2. If #PB_Any is used as '#Sprite2' parameter, the new sprite identifier will be returned as 'Result'. #Sprite2 is created if it does not exist.

The 'Mode' parameter is optional and can take the following values:
  0                 : Default mode. Sprite resides in video memory (if possible)
  #PB_Sprite_Memory : Sprite is loaded into main PC memory (for SpecialFX)
  #PB_Sprite_Alpha  : Sprite is 8 bits grayscale and will be used by DisplayAlphaSprite() or DisplayShadowSprite()
  #PB_Sprite_Texture: Sprite is created with 3D support - useful for the CreateSprite3D() command of the Sprite3D library.

Supported OS

All

<- CloseScreen() - Sprite Index - CreateSprite() ->