0

iam creating qr code scan in windows phone app.

using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read))
{
     wrb = await Windows.UI.Xaml.Media.Imaging.BitmapFactory.New(1, 1).FromStream(fileStream);                  
}

in the above code I am getting error in "BitmapFactory".

it shows below error:

The type or namespace name 'BitmapFactory' does not exist in the namespace 'Windows.UI.Xaml.Media.Imaging' (are you missing an assembly reference?)

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Anil Kumar
  • 303
  • 1
  • 6
  • 23

1 Answers1

2

You are missing the WritableBitmapEx.WinRT.dll. It is located in the Sample Projects bin -> Debug Folder. If it is already listed in your references delete it and add it again. Then it will work!

Rafael Regh
  • 443
  • 5
  • 17