How to make the Picture inserted fit to the document Width size?

Jun 1, 2014 at 8:51 AM
i wonder....
from the source code i found here.
private static DocX AddFooter()
{

    DocX document = DocX.Create(@"C:\Temp\DocxTools\Handtekening\testing_ex.docx");
    document.AddFooters();
    
    Novacode.Image iso = document.AddImage(@"C:\Temp\DocxTools\Handtekening\otho.gif");
    Picture pic1 = iso.CreatePicture();
    pic1.SetPictureShape(BasicShapes.cube);
    pic1.Width = 100;
    pic1.Height = 50;

    Footer footer1 = document.Footers.first;
    Paragraph pFooter = footer1.InsertParagraph();
    pFooter.InsertPicture(pic1);
    
    Footer footer2 = document.Footers.even;
    footer2.InsertParagraph().InsertPicture(pic1);
    
    document.Footers.odd.InsertParagraph().InsertPicture(pic1);

    document.Save();
    
    return document;    
}
Can we make the size of the Image become fit to the document width size... but how?