From 1080f7cd678c90acd80118d2683763a27342cb9b Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Thu, 2 Mar 2017 06:52:35 +0200 Subject: [PATCH] Testing the bitmap with the color table --- tests/Tests/SKColorTableTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Tests/SKColorTableTest.cs b/tests/Tests/SKColorTableTest.cs index 70130499..d27b5c10 100644 --- a/tests/Tests/SKColorTableTest.cs +++ b/tests/Tests/SKColorTableTest.cs @@ -118,6 +118,9 @@ namespace SkiaSharp.Tests Assert.AreEqual((SKPMColor)0x7E51621C, colorTable[140]); Assert.AreEqual((SKColor)0x7EA4C639, colorTable.GetUnPreMultipliedColor(140)); + + Assert.AreEqual((SKPMColor)0x7E51621C, bitmap.GetIndex8Color(182, 348)); + Assert.AreEqual((SKColor)0x7EA4C639, bitmap.GetPixel(182, 348)); } } }