Hi,
I need to resize (in fact scale) a 2D sprite. I know there's a way to do it by using the Sprite3D functions but using 3d functions causes a big slowdown (at least on my computer) so i want to know if anyone has come up with a way that uses only 2D commands ?
thanks in advance,
pythagoras
Resize a 2D sprite ?
I don't think it's possible with sprite commands, but you can resize an image
with ResizeImage() or resize it's drawing with the optional parameters of
DrawImage(ImageID,x,y,width,height).
For example you can load the image, create a sprite with the new dimensions
you want, then draw the resized image on the sprite...
with ResizeImage() or resize it's drawing with the optional parameters of
DrawImage(ImageID,x,y,width,height).
For example you can load the image, create a sprite with the new dimensions
you want, then draw the resized image on the sprite...
-
- User
- Posts: 13
- Joined: Wed Aug 20, 2003 11:08 am
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact: