←Select platform

UseDpi Property

Summary

Indicates whether LEAD's automated scaling properties are used to account for the physical resolution of the bitmap.

Syntax
C#
VB
C++
public virtual bool UseDpi { get; set; } 
Public Overridable Property UseDpi() As Boolean 
   Get 
   Set 
public:  
   virtual property bool UseDpi 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true Account for the physical resolution. Default value is true.

Remarks

The physical resolution of an image is measured in dots per inch (DPI). When you load an image, the XResolution and YResolution properties are updated with the DPI values for the horizontal and vertical resolution. Some images have different horizontal and vertical resolutions. For example, the horizontal resolution of a fax image is typically twice its vertical resolution (for example 200 by 100). In such cases, the displayed images will appear elongated if you do not account for the resolution. If the values of the XResolution property and the YResolution property are not equal, set the UseDpi property to true to have LEAD's automated scaling properties account for the physical resolution of the image.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly