Determines whether the image is stored through its data or through its file reference. By default an image is stored through a file reference if a file reference exists. Otherwise, if the image has been pasted from the clipboard, it is stored with its complete binary data.
public ImageSaveMode SaveMode { get; set; }
Public Property SaveMode() As ImageSaveMode
Member | Description |
---|---|
Auto | The image is saved as specified with the Save |
Save |
The image is saved in a Text Control document with its complete binary data. |
Save |
The image is saved in a Text Control document through a file reference. |
In this example the 'Save
TXTextControl.Image myImage = new TXTextControl.Image();
myImage.Sizeable = false;
myImage.HorizontalScaling = 75;
myImage.VerticalScaling = 75;
myImage.ExportCompressionQuality = 100;
myImage.ExportFileName = "MyFileName.PNG";
myImage.ExportFilterIndex = 3;
myImage.ExportMaxResolution = 0;
myImage.FileName = "MySampleImage.png";
myImage.FilterIndex = 4;
myImage.SaveMode = TXTextControl.ImageSaveMode.Auto; // here, the 'SaveMode' is set
textControl1.Images.Add(myImage, -1);
Dim myImage As TXTextControl.Image = New TXTextControl.Image()
myImage.Sizeable = False
myImage.HorizontalScaling = 75
myImage.VerticalScaling = 75
myImage.ExportCompressionQuality = 100
myImage.ExportFileName = "MyFileName.PNG"
myImage.ExportFilterIndex = 3
myImage.ExportMaxResolution = 0
myImage.FileName = "MySampleImage.png"
myImage.FilterIndex = 4
myImage.SaveMode = TXTextControl.ImageSaveMode.Auto ' here, the 'SaveMode' is set
textControl1.Images.Add(myImage, -1)