Why Does the Generated Image from PPT in C# Have Jagged Edges?

code:

using (var shapeBitmap = slide.GetImage(1.0f, 1.0f))
{
    const string outputDirectory = "D:\\zhytm\\test\\langchain_learn\\project\\DataImage";
    // 设置导出路径
    string outputPath = $"{outputDirectory}/Slide{slideIndex}_Shape{shapeIndex}.png";

    // 保存图片
    shapeBitmap.Save(outputPath, Aspose.Slides.ImageFormat.Png);
    Console.WriteLine($"导出了形状: {outputPath}");
}

毛边图.png (148.8 KB)

PPT原图.png (53.6 KB)

@raining,
Thank you for contacting free support. We are sorry that you encountered this problem. Could you please share the presentation file you used?

sure
service.zip (590.7 KB)

@raining,
Thank you for the sample PowerPoint presentation file. I’ve reproduced the problem with jagged edges when converting the shape to an image.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44825

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.