• Advertisement
Sign in to follow this  

Stretching Texture/Sprite

This topic is 2897 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys. Anyway, let's get to the point, I'm creating a title screen, and use sprite (from texture) as background image. I'm just wondering how would I make the texture stretch-able, so I can use it in not just 1 resolution, but many while the texture still covers the whole screen. Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
hello, not sure what your using but with SlimDX you can tell what width and height you want the texture to be and it will stretch it.

(SlimDX)
Texture temp = Texture.FromFile(device, f.FullName, width, height, 0, Usage.None, Pool.Managed);

But this makes it look kinda pixelated at higher resolutions so for a title screen you prolly jus wanna create a different image for each resolution.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement