Skip to content

Commit

Permalink
chore: change SKImage format to Unpremul
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Aug 5, 2024
1 parent 27d8b47 commit 3ad2e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI.Runtime.Skia/GLCanvasElement.GLVisual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public abstract partial class GLCanvasElement
{
private class GLVisual(GLCanvasElement owner, Compositor compositor) : Visual(compositor)
{
private readonly SKPixmap _pixmap = new SKPixmap(new SKImageInfo((int)owner._width, (int)owner._height, SKColorType.Bgra8888), owner._pixels);
private readonly SKPixmap _pixmap = new SKPixmap(new SKImageInfo((int)owner._width, (int)owner._height, SKColorType.Bgra8888, SKAlphaType.Unpremul), owner._pixels);

internal override void Paint(in PaintingSession session)
{
Expand Down

0 comments on commit 3ad2e72

Please sign in to comment.