How to convert OleObjectFrame to image(C# .NET)

Hi,

Can you please provide information on how to convert OleObjectFrame to an image in Aspose.Slides? it appears that there is not .ToImage() function for the shapes in Aspose.Cells. Is that true?

Thanks

@bchovatiya1,

I have observed your requirements and like to share that Ole frame visible inside slide is instance of Shape class and you can generate the shape thumbnail for that. I suggest you to please visit this documentation link for your kind reference.

Thank you for the response. However, it doesn’t meet our needs. We have already looked at the documentation link you provided. The Thumbnail created by GetThumbnail is smaller size and very poor and unacceptable quality. We need to create the very good quality image with the displayed size of the oleobject.

The GetThumbnail function also supports size, but it errors out every time we try with different size parameter. We are unable to locate a code snippet that actually works and create the image of the actual size with good quality.

Can you please provide a code snippet?

@bchovatiya1,

You can set your custom scaling factor while generating shape thumbnail. Scaling factor 1 means actual shape size. You may set any scaling factor to improve the quality as per your desires. Please check this documentation link for reference.