public void GlobalSetup()
        {
            var sourceFile = Common.GetSourceImagePath(imageIndex);

            image          = ImageFrame.FromFile(sourceFile).AsGrayScale(Colors);
            LZEncoded      = image.AsLZEncodedUsingHashTable(12289);
            HuffmanEncoded = image.AsHuffmanEncoded();
            GZipEncoded    = image.AsGZipEncoded();
        }
        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();
        }
 public GZipImageFrame EncodeGZip() => image.AsGZipEncoded();