CreateSprite()

语法

Result = CreateSprite(#Sprite, Width, Height [, Mode])
概要
Creates an empty sprite with the specified dimensions. SpriteOutput() can be used to draw on the sprite.

参数

#Sprite A number to identify the new sprite. #PB_Any can be used to auto-generate this number.
Width, Height The size of the new sprite (in pixels).
Mode (optional) It can be a combination of the following values (with the '|' operator):
  #PB_Sprite_PixelCollision: Add special information to handle pixel collision trough SpritePixelCollision().
  #PB_Sprite_AlphaBlending : Sprite is created with per pixel alpha-channel support, needed for DisplayTransparentSprite().

返回值

Nonzero if the sprite has been created, zero otherwise. If #PB_Any was used for the #Sprite parameter then the generated number is returned on success.

参阅

SpriteOutput()

已支持操作系统

所有

<- CopySprite() - Sprite Index - DisplaySprite() ->