Example #1
0
        public static Bitmap EmbedInformation(this Bitmap image, int wordLength, int significantBitsLength,
                                              AreaEmbeddingModel areaEmbedding, Matrix matrix, int bitsLength)
        {
            var bitsSequance = ConvertExtensions.GenerateBitsSequence(bitsLength).ToCompleteStringEmptyBits(significantBitsLength);

            if (string.IsNullOrEmpty(bitsSequance))
            {
                Logger.Fatal("Embedding information failed! Embedding information is null or empty!");
                return(null);
            }

            return(Modifier.Embed(image, wordLength, significantBitsLength, areaEmbedding, matrix, bitsSequance));
        }