PNG Image in the Footer

Hi

I am setting footer image using the code below. If the image is .PNG footer image size is not the actual size of the image. Please let me know how can I fix this

inFile = new System.IO.FileStream(aa, System.IO.FileMode.Open, System.IO.FileAccess.Read);

binaryData = new Byte[inFile.Length];

long bytesRead = inFile.Read(binaryData, 0, (int)inFile.Length);

PageSetup pageSetup = wb.Worksheets[0].PageSetup;

pageSetup.SetFooterPicture(0, binaryData);

Hi Preetha,


Thank you for using Aspose products.

First of all, we have split the existing thread to create a new one in order to treat your provided scenario as a separate inquiry.

Regarding your presented problem, please share the snapshots highlighting the issue along with the template spreadsheet and sample PNG image. Upon reviewing this information, we will be in a better position to assist you further in this regard.