Hi all. Could you plz help with converting powerpoint slide to jpeg issue?
PieChart in ppt presentation has callouts.
ppt_piechart_with_callouts.png (24.4 KB)
the result of jpeg conversion of that slide contains data labels only with borders without callouts
slide-1.jpg (33.9 KB)
the code of slide conversion
public static byte[] SaveShapeToJpg(Slide slide, int Width, int Height)
{
using (var newBitmap = new Bitmap(Width, Height))
using (var graphics = Graphics.FromImage(newBitmap))
using (var imageStream = new MemoryStream())
{
newBitmap.SetResolution(300, 300);
graphics.Clear(Color.White);
graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
graphics.CompositingQuality = CompositingQuality.HighQuality;
graphics.SmoothingMode = SmoothingMode.HighQuality;
slide.RenderToGraphics(
new RenderingOptions
{
NotesCommentsLayouting =
{
CommentsAreaWidth = 0
}
},
graphics,
new Size(Width, Height)
);
newBitmap.Save(imageStream, _jpegCodecInfo, _epParameters);
// construct the image item to add to the return package
return imageStream.ToArray();
}
}
Using Aspose.Slides for .NET Nuget package v.21.7.0 (latest stable version 21.8.0 provides the same result)
Are there some other settings which need to be set before conversion or that the Aspose.Slides for .NET issue?