Use the native platform color type
This commit is contained in:
Родитель
1b3414af80
Коммит
ef480400a4
|
@ -22,11 +22,7 @@ namespace SkiaSharp.Tests
|
||||||
Assert.Equal (128, codec.Info.Width);
|
Assert.Equal (128, codec.Info.Width);
|
||||||
Assert.Equal (128, codec.Info.Height);
|
Assert.Equal (128, codec.Info.Height);
|
||||||
Assert.Equal (SKAlphaType.Unpremul, codec.Info.AlphaType);
|
Assert.Equal (SKAlphaType.Unpremul, codec.Info.AlphaType);
|
||||||
if (IsUnix) {
|
Assert.Equal (SKImageInfo.PlatformColorType, codec.Info.ColorType);
|
||||||
Assert.Equal (SKColorType.Rgba8888, codec.Info.ColorType);
|
|
||||||
} else {
|
|
||||||
Assert.Equal (SKColorType.Bgra8888, codec.Info.ColorType);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче