Image brightness not preserved when rendering image from excel

Hi,

I the excel file (image_brightness.xlsx) I have an image with high brightness set. Rendering the file content with the image as a image losses the brightness setting. (see image_brightness.xlsx.out.png file)

The code used to obtain the image file is :

const string filePath = @“C:\image_brightness.xlsx”;

var workbook = new Workbook(filePath);

var imageOptions = new ImageOrPrintOptions
{
Quality = 100,
VerticalResolution = 200,
HorizontalResolution = 200,
PrintingPage = PrintingPageType.IgnoreBlank,
ImageFormat = ImageFormat.Png,
OnePagePerSheet = true
};

var worksheet = workbook.Worksheets[0];

string printArea = string.Format(“D2:T42”);
worksheet.PageSetup.PrintArea = printArea;
worksheet.PageSetup.TopMargin = 0;
worksheet.PageSetup.LeftMargin = 0;
worksheet.PageSetup.RightMargin = 0;
worksheet.PageSetup.BottomMargin = 0;

var sheetRender = new SheetRender(worksheet, imageOptions);

sheetRender.ToImage(0, filePath + “.out.png”);

Thank you,
Lucian Nistor

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

We were able to replicate this issue using your file and the sample code. We have logged this issue in our database. We will look into it and fix the issue.

Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-41447.

I’ve tested with Cells 7.4.3.1 and the problem still reproduces. Please change the status of the issue to Unresolved.

Thank you,
Lucian Nistor

Hi,

Thanks for your posting and using Aspose.Cells.

We were able to replicate this issue using the latest version. We have reopened this issue and logged your comments. Once, it is fixed or we have some other update for you, we will let you know asap.