DisplayTransparentSprite()

Syntax

DisplayTransparentSprite(#Sprite, x, y [, Intensity [, Color]])
Description
Display the #Sprite at the specified position on the current screen. This command will use the sprite alpha-channel information to have transparency effect (32-bit PNG can be used to get sprites with alpha-channel). This function is clipped, so it's perfectly legal to display the sprite outside of the screen. The sprite has to be created with #PB_Sprite_AlphaBlending flag to use this command.

Parameters

#Sprite The sprite to display.
x, y The coordinate (in pixels) in the screen where the sprite will be displayed.
Intensity (optional) The intensity level used to display the sprite. Valid value are from 0 (fully transparent) to 255 (fully opaque). Default value is 255.
Color (optional) The solid color used to display the sprite. The sprite will be rendered in only one color. To get a valid color, use RGB().

Return value

None.

See Also

DisplaySprite()

Supported OS

All

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