I add a png image to a worksheet, but when I open the excel document, the image is not scaled to 100%.
byte imgBytes = File.ReadAllBytes(“C:\temp\pic.png”);
MemoryStream ms = new MemoryStream();
ms.Write(imgBytes, 0, imgBytes.Length);
ws.Pictures.Add(7, 0, ms);
image.png (797.1 KB)
Do I need to call some other API?