Пример #1
0
        private void buttonAutoBright_Click(object sender, RoutedEventArgs e)
        {
            WriteableBitmap b = null;

            if (pc.SelectLayer != null)
            {
                b = pc.SelectLayer.getPhoto();
            }
            if (b != null)
            {
                DCTestLibrary.PhotoTest pt = new DCTestLibrary.PhotoTest();
                b = pt.AutoBright(b);
                pc.SelectLayer.setPhoto(b, pc.ScalePercent);
            }
        }