VgaGames4

VgaGames4 - sprite man-pages

[.. upper level ..]

# vg4->sprite->imagesize()

Calculate width and height of a sprite.

SYNTAX
void vg4->sprite->imagesize(const struct VG_Sprite *sprt, const char *bflag, int *width, int *height)
FUNCTION PARAMETERS

sprt | Sprite
bflag | How to calculate width and height: - min = the smallest width and height - max = the greatest width and height - avg = the average width and height any other value will use the first sprite-image
width | For returning width, if not NULL
height | For returning height, if not NULL

DESCRIPTION
Calculate width and height of a sprite. As the different images of the sprite may have different sizes, the parameter bflag specifies which size shall be returned.