Hi,
For converting color image into grayscale image Shape.ImageData.Grayscale boolean property set as true but color image not changed into grayscale image. This issue is mainly with .docx document, for .doc and .rtf it is working. Test document attached with the post.
I have used the following code :
foreach (Shape image in doc.GetChildNodes(NodeType.Shape, true))
{
if (image.HasImage && !image.ImageData.GrayScale)
{
image.ImageData.GrayScale = true;
}
}