2

I would like to transform a picture with GDI+ in C#. I would like to do the two transformations in the picture shown, but I only find skew (shear) transformations, which is not really what I want to do. I'm looking for a 'perspective' like transformation.

https://i.sstatic.net/nUBtV.jpg

Is it possible to do something similar with a Matrix, like shown in the crude picture?

Thanks,

3
  • I would suggest using something like OpenTK which is a C# wrapper for the OpenGL API. Commented Mar 27, 2015 at 2:08
  • No, only affine transforms are possible in GDI+. Commented Mar 27, 2015 at 23:11
  • Thanks for the replies! I was looking for something simple, to avoid going 3D. I might be able to achieve something similar to what I had in mind with "predrawn" pictures in photoshop, and some skew. Thanks for the help, really appreciated. Commented Mar 29, 2015 at 2:40

1 Answer 1

0

Matrix in GDI+ represents an affine matrix that results in affine [linear+shift] transformation. You need a bilinear transformation that uses x*y component and cannot be done by Matrix.

I was also wondering about such simple functionality and will report if I find something simple and directly applicable.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.