ResizeImage3D sprite,width,height

Parameters

sprite - handle of existing sprite
width - pixel width to resize the sprite to
height - pixel height to resize the sprite to

Description

Scales a 3d sprite entity to given 2D pixel dimensions.
You can use this function to flip sprites by supplying negative values.

See Also: ImageWidth3D() and ImageHeight3D()

Example

Include "Sprite Control.bb"

SpriteGraphics3D 640,480

mysprite=LoadImage3D("myimage.bmp")
ResizeImage3D mysprite,420,196
RenderWorld
Flip
WaitKey
End


Index