0

I am using Visual Studio 2015. When I add an existing .png file to my project's resources, VS recognizes it is an image and changes the format to a bitmap. It changes the size and bytes.

This is really annoying since I need the exact original png, not some converted bitmap. When I use c# to access my resource, e.g. Resources.MyPngFileName it returns the changed bitmap. Does anyone know how to avoid this?

Mario
  • 3,405
  • 6
  • 38
  • 48

1 Answers1

0

For 2015 (not the suggested duplicate answer for 2010) the only thing that works is to take off the .png extension and add as a file. Then Visual Studio does not change the file.

Maybe they will change this in a future update to work like 2010

Mario
  • 3,405
  • 6
  • 38
  • 48