dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Access the pixels in GraphicsView? #25905

Closed ljzj2 closed 4 days ago

ljzj2 commented 5 days ago

Description

I can drawText or shapes in GraphicsView and I wonder if there is any chance get the pixels in it like in winforms?

Public API Changes

add functions canvas.GetPixel(x,y)

Intended Use-Case

I have a situation that I want to get the best matrix of the text for many sizes. if I want to get the 11*11 pixel matrix. and I will paint on graphicsView and then I can get the pixel. and light it on LED