コード例 #1
0
ファイル: PngFiltered.cs プロジェクト: hexafluoride/Stomp
        public void Apply(FastBitmap bmp)
        {
            var filters = GenerateFilterArray(bmp);

            Stopwatch sw       = Stopwatch.StartNew();
            var       filtered = PngFilter.Encode(bmp, filters);

            SendMessage("Encoded in {0} seconds.", sw.ElapsedMilliseconds / 1000d);

            Chain.Apply(filtered);

            sw.Restart();

            PngFilter.Decode(filtered, filters, bmp);
            SendMessage("Decoded in {0} seconds.", sw.ElapsedMilliseconds / 1000d);

            sw.Stop();
        }