Comments (5)
@vpenades You are correct that this could be misleading, and I'm happy to accept a pull request to change the behavior.
Like most things you've commented on, things are implemented the way they are because of specific use cases that I had, and I wasn't designing for anything beyond what I needed.
As an FYI, this code pre-dates Skia, so it's not based on SKMatrix. If you're curious, it was based on Java2D.
from microsoft.maui.graphics.
Okey, then I would suggest to rename the properties... looking at microsoft's matrices, we have
- System.Numerics.Matrix3x2
- M11, M12, M21, M22, M31, M32
- System.Windows.Media.Matrix
- M11, M12, M21, M22, OffsetX, OffsetY
I would suggest to follow Systen.Numerics.Matrix3x2, so I would rename both the internal fields and the public properties.
Then, I would add these extra properties:
- SizeF Scale { get; }
- PointF Translation {get;}
Translation follows the same naming convention as Matrix3x2.
Scale would return the values along the axes of the matrix, so it would return the right scales, regardless of the rotation,
let me know if you agree, or if you need to change something about the proposal, and I'll do the pull request.
from microsoft.maui.graphics.
@vpenades I agree with your proposal. I really appreciate your collaboration on this!
from microsoft.maui.graphics.
Okey, I'll be working on the PR... I think I will also need to add some unit tests
from microsoft.maui.graphics.
resolved with #189
from microsoft.maui.graphics.
Related Issues (20)
- Microsoft.Maui.Graphics.Skia do not support Chinese text drawing HOT 2
- Compare test of SkiaGraphicsView and GraphicsView, have some different result. HOT 1
- Animation speed HOT 1
- Canvas.DrawText - Not Implemented Exception
- Repair it,bug of PlatformImage.cs,offset 16
- How to customize the automation peer for W2DGraphicsView
- Non-Affine Transforms
- No Microsoft.Maui.Graphics.GDI.Winforms NuGet Package
- ArgumentException "Value does not fall within the expected range" when trying to load image on windows
- IImage.Resize ObjectDisposedException on Android HOT 1
- Is there an equivalent to GraphicsPath.AddString in .NET Maui?
- Render grayscale images
- System.DllNotFoundException
- Suggest a possible optimization for `static Color GetNamedColor(ReadOnlySpan<char> value)`. HOT 2
- GraphicsView Interaction Event must continue when outside
- Please explain the arguments to “skglControl.Invalidate();”
- How to load a image on the windows platform? HOT 2
- Clarify relation with Microsoft.Maui.Graphics nuget package HOT 2
- THIS IS NOT THE REPOSITORY YOU'RE LOOKING FOR HOT 1
- Overlay Text Color is not changing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft.maui.graphics.