The DocumentResolution Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Gets or sets the document resolution (in dots per inch) of the resulting document.Visual Basic (Declaration) | |
---|---|
Public Property DocumentResolution As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DocumentOptions Dim value As Integer instance.DocumentResolution = value value = instance.DocumentResolution |
C# | |
---|---|
public int DocumentResolution {get; set;} |
Property Value
Document resolution value given in dots per inch unit and it controls the dimensions of the resulting document. Default value is 0 (use the resolution of the actual page).When creating documents, the DocumentWriter object will use the resolution set in the Enhanced Metafile handle passed to DocumentWriter.AddPage method through DocumentPage.EmfHandle. However, sometimes it is desirable to override this behavior and use a pre-calculated fixed value for the resolution instead. To do this, change the value of the DocumentResolution property from the default value of 0 to the desired value before any calls to DocumentWriter.AddPage.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7