Free Support Forum - aspose.com

Cropping image like Word do with Aspose.Words

Hi,

Is it possible to set cropping parameters with Aspose when I’m inserting a image in my document ?

I want to insert a image in my doc, crop it but be able to get the full image when I open it with Word.

Thanks,

Q.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Sure, you can use ImageData.CropBottom, ImageData.CropLeft, ImageData.CropRight and ImageData.CropTop properties. Please see the following link for more information:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.drawing.imagedata.cropbottom.html

Best regards.

Thank you for your help.

Q.