TX Text Control .NET for WPF

ExportMaxResolution Property

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

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

Examples

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