ClipSprite()
语法
ClipSprite(#Sprite, x, y, Width, Height)概要
Adds a clip zone to the specified sprite. For example, if a sprite is 100*100 (Width*Height) and a clipping zone is added as x=10, y=10, Width=20, Height=20 then when the sprite is displayed, only the rectangular area starting from x=10, y=10 with width=20 and height=20 will be displayed.
参数
#Sprite The sprite to clip. x, y The clipping start position (in pixels). #PB_Default can be used as value to remove the clipping. Width, Height The clipping size (in pixels). #PB_Default can be used as value to remove the clipping.
返回值
无.
Remarks
On some older gfx cards the clipping with ClipSprite() doesn't work properly, if the sprite is larger than the used screen.
参阅
DisplaySprite(), DisplayTransparentSprite()
已支持操作系统
所有