ExportMaxResolution Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the maximum resolution in dots per inch used if this image is saved. If the 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, Text Control uses the maximum resolution set with the SaveSettings.ImageMaxResolution property or the image's default resolution.
Syntax
public int ExportMaxResolution { get; set; }Public Property ExportMaxResolution As IntegerExamples
The following example inserts and configures a named, accessible company logo by using Image.ExportMaxResolution.
TXTextControl.Image image = new() { FileName = @"Images\company-logo.png", Name = "CompanyLogo" };
textControl.Images.Add(image, -1);
image.ExportMaxResolution = 150;
Console.WriteLine($"Export Max Resolution used by Image: {image.ExportMaxResolution}");
textControl.Save("report-with-logo.docx", StreamType.WordprocessingML);Dim image As New TXTextControl.Image() With { .FileName = "Images\company-logo.png", .Name = "CompanyLogo" }
textControl.Images.Add(image, -1)
image.ExportMaxResolution = 150
Console.WriteLine($"Export Max Resolution used by Image: {image.ExportMaxResolution}")
textControl.Save("report-with-logo.docx", StreamType.WordprocessingML)