GetSpritePitch |
Top Previous Next |
Syntax UINT = GetSpritePitch(sprite as POINTER) Description Returns the sprites pitch, or bytes per line, of the internal surface used by the sprites image. Parameters sprite - Sprite pointer returned by LoadSprite. Return value The pitch of the sprite. Remarks Used for direct memory access of the sprites buffer. Sprite must be locked first with LockSprite before using this command. See Also: LOADSPRITE, LOCKSPRITE, UNLOCKSPRITE, GETSPRITEPOINTER Example usage DEF pBuffer as POINTER |