Skip to content

Commit

Permalink
Fix SKXamlCanvas on Uno Skia to use Bgra8888 (#2918)
Browse files Browse the repository at this point in the history
* Fix SKXamlCanvas on Uno Skia to use Bgra8888
* Fix build
  • Loading branch information
Youssef1313 authored Jul 3, 2024
1 parent 463dd82 commit c264c44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private void DoInvalidate()
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();
Expand Down

0 comments on commit c264c44

Please sign in to comment.