Scott W Harden
Scott W Harden
thoughts 1 I ran into ~this same~ _a similar_ issue last night. I noticed `GetLuminosity()` and `GetSaturation()` exist but there is no matching `GetValue()` because function name means something else....
I implemented this suggestion in PR #281
Hi @aletfa, Connecting some dots here, this issue is related to or also mentioned in: * https://github.com/dotnet/Microsoft.Maui.Graphics/issues/433 * https://github.com/dotnet/Microsoft.Maui.Graphics/issues/232 * https://github.com/dotnet/Microsoft.Maui.Graphics/issues/337 * https://github.com/dotnet/Microsoft.Maui.Graphics/issues/279 * https://github.com/dotnet/Microsoft.Maui.Graphics/issues/459
> documentation for contributing In an effort to make this easier I created a `CONTRIBUTING.md` modeled after [dotnet/maui's](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md) (PR #169) > guide is needed for development I agree that a...
I tried to figure this out a few months ago too. This is what I came-up with using `SkiaSharp` from the `Microsoft.Maui.Graphics.Skia` package: https://swharden.com/blog/2021-10-16-maui-graphics-measurestring ```cs SizeF MeasureString(string text, string fontName,...
It seems this is being actively worked on (e.g., https://github.com/dotnet/Microsoft.Maui.Graphics/commit/731cf3adc3daa92f74576c14e17aae70a3438ea2, https://github.com/dotnet/Microsoft.Maui.Graphics/commit/4baa4493336028b5432f53486c9e7354c68a0711) but it looks like `canvas.GetStringSize()` will measure a string. The code below runs on the latest source code available...
It looks like this is working better now, demonstrated by this sample code using the latest main branch c15cc9c @cmaughan describes a bug where the measured rectangle mismatches the font...
> I think the first part of your description is going to be implied by the fact that it's marked as obsolete in Visual Studio. Hi @jfversluis, thanks for your...
Note there's some related discussion in #279
Hi @trmcnealy, Thanks for this suggestion! I'm not very familiar with the pros and cons of using `CompositionTarget.Rendering` vs a timer for drawing graphics. A quick search advises timers are...