зеркало из https://github.com/mono/SkiaSharp.git
Fix SKXamlCanvas on Uno Skia to use Bgra8888 (#2918)
* Fix SKXamlCanvas on Uno Skia to use Bgra8888 * Fix build
This commit is contained in:
Родитель
463dd82027
Коммит
c264c449b8
|
@ -81,7 +81,7 @@ namespace SkiaSharp.Views.UWP
|
|||
private SKImageInfo CreateBitmap(out SKSizeI unscaledSize, out float dpi)
|
||||
{
|
||||
var size = CreateSize(out unscaledSize, out dpi);
|
||||
var info = new SKImageInfo(size.Width, size.Height, SKImageInfo.PlatformColorType, SKAlphaType.Premul);
|
||||
var info = new SKImageInfo(size.Width, size.Height, SKColorType.Bgra8888, SKAlphaType.Premul);
|
||||
|
||||
if (bitmap?.PixelWidth != info.Width || bitmap?.PixelHeight != info.Height)
|
||||
FreeBitmap();
|
||||
|
|
Загрузка…
Ссылка в новой задаче