ExportMaxResolution Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. 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 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}");Dim signatureImage As New SignatureImage("Images\alex-smith-signature.svg", 0)
Dim approval As New SignatureField(New System.Drawing.Size(3000, 1000), "ApproverSignature", 10) With { .Image = signatureImage }
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter)
signatureImage.ExportMaxResolution = 150
Console.WriteLine($"Export Max Resolution used by Signature Image: {signatureImage.ExportMaxResolution}")