I am using Spire.XLS for .NET in ASP.NET 9 MVC application
In the documentation, I found a page that explains how to capture a high-resolution image from a cell range.
The ResetResolution method uses specific Windows libraries to control the resolution. I'm trying to achieve the same method but in a cross-platform way.
For example, using AnyBitmap from IronSoftware, I could implement low-resolution capture on Linux with the following code:
- Code: Select all
AnyBitmap image = sheet.ToImage(cellRange.Row, cellRange.Column, cellRange.LastRow, cellRange.LastColumn);
var content = image.ExportBytes(AnyBitmap.ImageFormat.Png);
result.Add(content);
Do you know of any way to use the ResetResolution method in a way that is compatible with Linux?
Best regards