Search code examples
c#windows-phone-8windows-phone-8-emulator

Where is the BitmapEncoder in a Windows Phone 8.0 project?


This might be a really silly question, but I'm on my first Windows Phone application. I'm unable to reference (or find) the Windows.Graphics.Imaging namespace that contains the BitmapEncoder class.

I'm in a Windows Phone 8.0 project and if I try to add references it tells me I have them all. I'm seeing sample after code sample of people using the BitmapEncoder but I can't seem to find it.

I'm almost at a point to use the Browse in add references and add it that way, I just want to make sure I'm not going to mess something up down the road.

Edit: I'm starting to believe that it could be because the project is 8.0 instead of 8.1. I'm going to backup and convert and see if that resolves it.


Solution

  • BitmapEncoder only for universal app and Windows Phone 8.1

    See BitmapEncoder class