ImageSharp.Drawing transformations are unintuitive #82
Replies: 2 comments 12 replies
-
Please do not open non-issues in the issue tracker. There is a template (that you deleted) for a reason. I will transform this to the correct repository (drawing) and move it to the correct discussions channel (ideas) so that any conversation can continue there. |
Beta Was this translation helpful? Give feedback.
-
Thanks for being a maintainer on this library. I understand you're a volunteer. You don't owe me anything. Keep in mind, I'm volunteering my time too. By taking the time to create this issue and articulate my feedback and provide the benefit of my experience, I am trying to help this project. I have no other ulterior motive. We've already figured out workarounds and have working code. There is no expectation that this will be fixed to address a particular need.
|
Beta Was this translation helpful? Give feedback.
-
If you're coming from any other graphics API, ImageSharp's transformations are unintuitive because they behave a little strangely in comparison. Look at this code
Coming from OpenGL, GDI+, Javascript Canvas, etc., you would expect this code to apply the transformation to
DrawText
. What it actually does is apply the transformation to what's already been drawn. This makes it impossible to apply discrete transformations on a single draw operation. For example, drawing a single thing rotated at an angle. I'm very new to ImageSharp so maybe I'm missing something.Pretty much every other drawing library out there applies the transform as a state on the drawing context that applies to subsequent operations. You can typically manage the state using push/pop type functions.
Beta Was this translation helpful? Give feedback.
All reactions