Added SKCodec.EncodedInfo tests
This commit is contained in:
Родитель
16132abcb8
Коммит
0ef9633267
|
@ -31,6 +31,17 @@ namespace SkiaSharp.Tests
|
|||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void GetEncodedInfo ()
|
||||
{
|
||||
var stream = new SKFileStream (Path.Combine (PathToImages, "color-wheel.png"));
|
||||
using (var codec = SKCodec.Create (stream)) {
|
||||
Assert.AreEqual (SKEncodedInfoColor.Rgba, codec.EncodedInfo.Color);
|
||||
Assert.AreEqual (SKEncodedInfoAlpha.Unpremul, codec.EncodedInfo.Alpha);
|
||||
Assert.AreEqual (8, codec.EncodedInfo.BitsPerComponent);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CanGetPixels ()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче