コード例 #1
0
        public void GlobalSetup()
        {
            var sourceFile = Common.GetSourceImagePath(imageIndex);

            image          = ImageFrame.FromFile(sourceFile).AsGrayScale(Colors);
            LZEncoded      = image.AsLZEncodedUsingHashTable(12289);
            HuffmanEncoded = image.AsHuffmanEncoded();
            GZipEncoded    = image.AsGZipEncoded();
        }
コード例 #2
0
        public void GlobalSetup()
        {
            var sourceFile = Common.GetSourceImagePath(imageIndex);

            image = ImageFrame.FromFile(sourceFile).AsCroppedImage(new CropSetup {
                LeftPx = Crop * 16, RightPx = Crop * 16, TopPx = Crop * 16, BottomPx = Crop * 16
            }).AsGrayScale();
            LZEncoded      = image.AsLZEncodedUsingHashTable(12289);
            HuffmanEncoded = image.AsHuffmanEncoded();
            GZipEncoded    = image.AsGZipEncoded();
        }
コード例 #3
0
 public LZImageFrame EncodeHashTable() => image.AsLZEncodedUsingHashTable(12289);