XImage theImg = new XImage();
Doc doc = new Doc();
theImg.SetFile(Server.MapPath("../mypics/mypic.jpg"));
doc.Rect.String = theImg.Selection.String;
doc.Rect.Magnify(0.5, 0.5);
doc.Rect.Position(100, 30);
doc.AddImageObject(theImg, false);
theImg.Selection.Inset(100, 200);
doc.Rect.String = theImg.Selection.String;
doc.Rect.Position(170, 400);
doc.AddImageObject(theImg, false);
theImg.Clear();
doc.Save(Server.MapPath("imageselect.pdf"));
doc.Clear();
Dim theImg As New XImage()
Dim doc As New Doc()
theImg.SetFile(Server.MapPath("../mypics/mypic.jpg"))
doc.Rect.String = theImg.Selection.[String]
doc.Rect.Magnify(0.5, 0.5)
doc.Rect.Position(100, 30)
doc.AddImageObject(theImg, False)
theImg.Selection.Inset(100, 200)
doc.Rect.String = theImg.Selection.[String]
doc.Rect.Position(170, 400)
doc.AddImageObject(theImg, False)
theImg.Clear()
doc.Save(Server.MapPath("imageselect.pdf"))
doc.Clear()