TX Text Control .NET for Windows Forms

ImageMaxResolution Property

Property|Introduced in 11.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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);