Microsoft.Maui.Graphics icon indicating copy to clipboard operation
Microsoft.Maui.Graphics copied to clipboard

Convert the GraphicsView's Drawable to an image

Open GabrieleMessina opened this issue 3 years ago • 0 comments

The documentation says it's possible to create an IImage from an IDrawable using the graphicsView.Drawable.ToImage(400, 500) method but IDrawable doesn't declare any ToImage method and even if it did the actual implementation of the class that implements IDrawable should use methods of some other concrete class to achieve this because it doesn't contain any info about the pixel matrix.

Am i getting something wrong? What is the right way to extract an image from a GraphicsView?

GabrieleMessina avatar Mar 08 '22 12:03 GabrieleMessina