Here is what i have so far
OpenFileDialog dialog = new OpenFileDialog
{
CheckFileExists = true,
Multiselect = false,
Filter = "Images (*.jpg,*.png)|*.jpg;*.png|All Files(*.*)|*.*"
};
dialog.ShowDialog();
{
StrName = dialog.SafeFileName;
ImageName = dialog.FileName;
ImageSourceConverter isc = new ImageSourceConverter();
if (ImageName != "")
{
QRImage.SetValue(System.Windows.Controls.Image.SourceProperty, isc.ConvertFromString(ImageName));
}
}
QRCodeDecoder dc = new QRCodeDecoder();
dc.decode(new QRCodeBitmapImage(QrImage.Source as Bitmap));
and i cant read the MyImage with {Cannot convert type 'System.Windows.Media.ImageSource' to 'System.Drawing.Bitmap' }