[SlimDX]Shrinking and Stretching Textures
Is there an easy way to shrink or stretch a texture to a certain height or width in pixels? I am currently using Device.SetTransform() to do it before rendering, but it is kinda a hassle.
Why do you want to resize the texture itself? If you are working with texels just move the VERTEX coordinates.
I am working with SlimDX's Sprite and Texture classes. Should I ditch those classes in favor of using quads?
Some overloads of the texture loading functions take size parameters that allow you to resize the texture at load time. That might work better for what you're doing.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement