예제 #1
0
파일: StegoF5.cs 프로젝트: tom1604/StegoF5
        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));
        }