Leadtools.Forms.DocumentWriters Namespace > IDocumentOptions Interface : MaintainAspectRatio Property |
bool MaintainAspectRatio {get; set;}
'Declaration Property MaintainAspectRatio As Boolean
'Usage Dim instance As IDocumentOptions Dim value As Boolean instance.MaintainAspectRatio = value value = instance.MaintainAspectRatio
bool MaintainAspectRatio {get; set;}
get_MaintainAspectRatio();
set_MaintainAspectRatio(value);
The aspect ratio of an image is its width divided by its height. If MaintainAspectRatio is set then the DocumentResolution value will be mapped to the higher (X or Y) resolution of the original emf file, while the other resolution will be calculated in a way that preserve the aspect ratio of the original file.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2