Sign in to follow this  
LegACy99

Stretching Texture/Sprite

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this