Repository navigation
|
In Skiasharp, we can create a Bitmap in memory, then draw it in a canvas, and then display the image to the interface. In Winform, we can new a Graphics in memory, and then set it as a picturebox's image, for example: But in GraphicsView's documentation I didn't find a corresponding description. The function I want to achieve is: In Maui's documentation it says "Images can be saved by the and methods. Each method saves the to a , and enables optional and quality values to be specified.IImage.SaveIImage.SaveAsyncIImageStreamImageFormat", but the code in it only involves the image's Zoom directly, without being associated with Canvas. Excuse me, is there any way I can achieve the desired function? |
Replies: 1 comment 1 reply
|
You can do it by youselft, canvas have a platformcanvas, you can search every platform how to use this platformcanvas draw on bitmap. I realize offscreen draw have some related code https://github.com/xtuzy/MauiPlayground/tree/master/MauiLib/GraphicExtension |
You can do it by youselft, canvas have a platformcanvas, you can search every platform how to use this platformcanvas draw on bitmap. I realize offscreen draw have some related code https://github.com/xtuzy/MauiPlayground/tree/master/MauiLib/GraphicExtension