using (System.Drawing.Image selectedImage = System.Drawing.Image.FromFile(path))
{
TXTextControl.Image imageNew = new TXTextControl.Image(selectedImage);
if (textControl1.Images.Add(imageNew, TXTextControl.HorizontalAlignment.Left, textControl1.InputPosition.TextPosition, TXTextControl.ImageInsertionMode.FixedOnPage))
{
imageNew.ExportFilterIndex = 4;
}
} |