I have encountered a new obstacle when porting from XNA to DirectX 9. I have replaced SpriteBatch with Sprite and I'm using the Draw method (http://sharpdx.org/documentation/api/m-sharpdx-direct3d9-sprite-draw-1).
The problem is that I need to align a source rectangle from a texture to a destination rectangle in the current render target. If the source and destination rectangle have different dimensions, the texture should get stretched.
But I was not able to make the Transform property behave correctly. If scaling is involved, I can't get the right translation. Does anybody know how to use the Sprite class to precisely position and stretch a source texture to a destination rectangle? Something that behaves like StrechDraw I think.