You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a custom control using SKCanvasView. Putting this into a view and then using CaptureAsync on the view is producing a wrong image on android. Works on Windows.
The top view was captured and the bottom is the captured image:
It seems like, that the canvas on the snapshot is scaled to the snapshot target's size. So I was able to create a Workaround by scaling the CustomView during the snapshot creation.
Description
I'm creating a custom control using
SKCanvasView
. Putting this into a view and then usingCaptureAsync
on the view is producing a wrong image on android. Works on Windows.The top view was captured and the bottom is the captured image:
Code
GitHub repository: https://github.com/Pairoba/CaptureAsyncSkiaSharp
CustomView.cs
MainPage.xaml.cs
MainPage.xaml
Expected Behavior
Correct generated image
Actual Behavior
Incorrect generated image
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Android
Platform / Operating System Version
Devices
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: