mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.14k stars 522 forks source link

[BUG] XAML Live Preview for Android shows most SKCanvasViews distorted (Visual Studio 2022 17.10 Preview 2 / .NET 9.0 Preview 2) #2816

Open janne-hmp opened 1 month ago

janne-hmp commented 1 month ago

Description

See the attached screenshot. Using game GnollHack on Android, real device Google Pixel 6a. Background seems to be ok (ImageCarousel), but all other custom controls using SkiaSharp are distorted in Visual Studio 2022 17.10.0 Preview 2.0 (.NET 9.0 Preview 2 / SkiaSharp 3.0 Preview 2.1). iOS does not seem to support XAML Live Preview.

Code

See the screenshot.

Expected Behavior

XAML Live Preview shows the mobile screen as in the real device.

Actual Behavior

XAML Live preview is distorted as it relates to most SkiaSharp SKCanvasViews.

Version of SkiaSharp

3.x (Alpha)

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

Android 14

Devices

Google Pixel 6a

Relevant Screenshots

image

Relevant Log Output

No response

Code of Conduct