I solved my problem. I am posting my answer here, maybe this is useful to someone else.
var doc = new Document();
var shapeCollection = doc.GetChildNodes(Word.NodeType.Shape, true);
foreach (Shape shape in shapeCollection)
{
if (shape.ShapeType == ShapeType.Image)
{
if (shape.ImageData.ImageBytes.Length == 924)
{
shape.Width = 72.0;
shape.Height = 72.0;
}
}
}
source
share