TX Text Control .NET for Windows Forms

ExportMaxResolution Property

Property|Introduced in 31.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.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 adds a visible handwritten-signature image to an approval field by using SignatureImage.ExportMaxResolution.

SignatureImage signatureImage = new(@"Images\alex-smith-signature.svg", 0);
SignatureField approval = new(new System.Drawing.Size(3000, 1000), "ApproverSignature", 10) { Image = signatureImage };
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter);

signatureImage.ExportMaxResolution = 150;
Console.WriteLine($"Export Max Resolution used by Signature Image: {signatureImage.ExportMaxResolution}");