GetSpriteWidth |
Top Previous Next |
Syntax UINT = GetSpriteWidth(sprite as POINTER) Description Returns the width of the sprite in pixels. Parameters sprite - Sprite pointer returned by the LoadSprite function. Return value The width of the sprite. Remarks LoadSprite can automatically calculate the width and height of a sprite based on the image data. Use this function to retrieve the current width of the sprite. The width returned is one frame width, not the width of the original image unless the image only contains one frame. See Also: GETSPRITEHEIGHT Example usage sprite = LoadSprite(GETSTARTPATH+"mouth.bmp",0,0,3) |