How to Move an Image?

I have an image I have inserted as HTML. I want to take that image from the node I originally inserted it and move it to the current position in the document. I am trying to do this by getting theimage data from the node, but I can’t seem to quite get this. Any help is appreciated

Answered my own question:


Shape shape = (Shape) node;
ImageData imageData = shape.getImageData();
docBuilder.insertImage(imageData.toImage());

Hi Steven,


Thanks for your inquiry. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.