Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Image Distortion

Author
Message
Gamefreak
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 7th Nov 2004 03:00
How come when I load an image and use the sprite command, it gets all stretched and distorted looking?
the_winch
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 7th Nov 2004 05:02 Edited at: 7th Nov 2004 05:02
Quote: "LOAD IMAGE
This command will load a picture file as an image. The picture file must be of the BMP, JPG, TGA, DDS, DIB or PNG format. All images loaded are prepared with mipmaps if they do not already have them. TGA, DDS and PNG will retain their alpha channel data when loaded, providing the required transparency information when combined with transparency commands. A Texture Flag of zero will treat the image as a texture and load to fill a texture surface in memory. A value of one will preserve the image without adding mipmaps, scaling or filtering and so retaining its pixel perfect quality.

SYNTAX
LOAD IMAGE Filename, Image Number
LOAD IMAGE Filename, Image Number, Texture Flag"


Use a texture flag of 1 and it should be fine
LOAD IMAGE "a.bmp",1,1

Quote: "this is not a quote"
Gamefreak
20
Years of Service
User Offline
Joined: 20th Jun 2004
Location: Cyberspace
Posted: 7th Nov 2004 08:28
Thanks

Login to post a reply

Server time is: 2025-05-17 02:31:10
Your offset time is: 2025-05-17 02:31:10