ImageMaxResolution Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Sets the maximum resolution for all images in the document in dots per inch when the document is saved. If an image's resolution is larger than this property's value it is reduced otherwise it is not changed. If this property's value is zero, which is the default value, the default resolution of each image is used. For a single image the value of this property can be overwritten using the Image.ExportMaxResolution property.
Syntax
public int ImageMaxResolution { get; set; }Public Property ImageMaxResolution As IntegerExamples
The following example configures how the current document is exported to WordprocessingML by using SaveSettings.ImageMaxResolution.
textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();
saveSettings.ImageMaxResolution = 10;
Console.WriteLine($"Image Max Resolution used by Save Settings: {saveSettings.ImageMaxResolution}");
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.ImageMaxResolution = 10
Console.WriteLine($"Image Max Resolution used by Save Settings: {saveSettings.ImageMaxResolution}")
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)