Beispiel #1
0
    protected void OnBtnSteganoPrikaziClicked(object sender, EventArgs e)
    {
        string msg = null;

        if (imageMatrix != null)
        {
            msg = Algorithms.ReadSecret(imageMatrix);
        }

        SteganoDialog dialog = new SteganoDialog(this, true, msg != null, msg);

        dialog.Run();
    }
Beispiel #2
0
    protected void OnBtnSteganoPostaviClicked(object sender, EventArgs e)
    {
        string msg = null;

        if (imageMatrix != null)
        {
            msg = Algorithms.ReadSecret(imageMatrix);
        }

        SteganoDialog dialog = new SteganoDialog(this, false, false, msg == null ? "" : msg);

        dialog.Run();

        msg = dialog.Message;

        uint[,] result = Algorithms.WriteSecret(imageMatrix, msg);
        if (result != null)
        {
            image.Pixels = result;
            ReloadImage();
        }
    }