Hi,
I have a problem with an image inside a frame, which is smaller than image placeholder. When I add an image in Word it will be resized to fit a frame, but when I add it with aspose, image is too big and is cut at the bottom and also it loses its proportions. If I had a frame size I could resize image manualy, but I couldn’t find a frame object inside aspose at all. I would really appreciate any help with this.
I use similar code to this:
Document document = new Document(stream);
NodeCollection shapes = _document.GetChildNodes(NodeType.Shape, true);
foreach (Shape shape in shapes)
{
shape.ImageData.ImageBytes = File.ReadAllBytes("C:\Aspose\dotnet-logo.png");
}
In the attachment you can find my original file, image and result of the above code.