Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
GetImageSizeDpi Method
See Also 
Leadtools Namespace > RasterImage Class : GetImageSizeDpi Method




useDpi
true to take into account the resolution (DPI) of the image; false to ignore the DPI.
Gets the size in pixels of this RasterImage object, taking YResolution into account.

Syntax

Visual Basic (Declaration) 
Public Function GetImageSizeDpi( _
   ByVal useDpi As Boolean _
) As Size
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim useDpi As Boolean
Dim value As Size
 
value = instance.GetImageSizeDpi(useDpi)
C# 
public Size GetImageSizeDpi( 
   bool useDpi
)
Managed Extensions for C++ 
public: Size GetImageSizeDpi( 
   bool useDpi
) 
C++/CLI 
public:
Size GetImageSizeDpi( 
   bool useDpi
) 

Parameters

useDpi
true to take into account the resolution (DPI) of the image; false to ignore the DPI.

Return Value

The size in pixels of this RasterImage object, taking YResolution into account.

Remarks

The size in pixels is Width by Height pixels.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also