1

我加载了一个ImageBitmapImage.

XAML

<Image Margin="12,12,16,71" Name="imgPhoto">

Code behind

OpenFileDialog op = new OpenFileDialog();
op.Title = "Select a picture";
op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
                "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
                "Portable Network Graphic (*.png)|*.png";

if (op.ShowDialog() == true)
{
    imgPhoto.Source = new BitmapImage(new Uri(op.FileName));
}

我怎样才能改变这个亮度Image

4

0 回答 0