Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 ClipSprite

Syntax

Result = ClipSprite(#Sprite, x, y, Width, Height)
Description
Add 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. To remove the clipping of the #Sprite, use #PB_Default constant for 'x', 'y', 'Width' and 'Height'.

Note: On some older gfx cards the clipping with ClipSprite() doesn't work properly, if the sprite is larger than the used screen.

Supported OS

Windows, AmigaOS, Linux

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



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved