Determines whether the drawing's bitmap image is stored through its binary data or through a file reference. By default a drawing's image is stored with its 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. The technical article Loading and Saving Images describes where newly created image files are stored. |
The following example shows how to use the TXText
TXTextControl.Drawing.TXDrawingControl myDrawingControl = new TXTextControl.Drawing.TXDrawingControl();
TXTextControl.DataVisualization.DrawingFrame drawingFrame = new TXTextControl.DataVisualization.DrawingFrame(myDrawingControl);
drawingFrame.Activate();
drawingFrame.ExportCompressionQuality = 100;
drawingFrame.ExportFileName = "";
drawingFrame.ExportFilterIndex = 0;
drawingFrame.ExportResolution = 0;
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto; // here, the SaveMode is set
textControl1.Drawings.Add(drawingFrame, -1);
Dim myDrawingControl As TXTextControl.Drawing.TXDrawingControl = New TXTextControl.Drawing.TXDrawingControl()
Dim drawingFrame As TXTextControl.DataVisualization.DrawingFrame = New TXTextControl.DataVisualization.DrawingFrame(myDrawingControl)
drawingFrame.Activate() ' here, the Activate method is used
drawingFrame.ExportCompressionQuality = 100
drawingFrame.ExportFileName = ""
drawingFrame.ExportFilterIndex = 0
drawingFrame.ExportResolution = 0
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto ' here, the SaveMode is set
textControl1.Drawings.Add(drawingFrame, -1)