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




graphics
The reference Graphics object.
Gets this RasterImage's dimensions corrected for resolution (DPI).

Syntax

Visual Basic (Declaration) 
Public Function ImagePhysicalSize( _
   ByVal graphics As Graphics _
) As SizeF
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim graphics As Graphics
Dim value As SizeF
 
value = instance.ImagePhysicalSize(graphics)
C# 
public SizeF ImagePhysicalSize( 
   Graphics graphics
)
Managed Extensions for C++ 
public: SizeF ImagePhysicalSize( 
   Graphics graphics
) 
C++/CLI 
public:
SizeF ImagePhysicalSize( 
   Graphics graphics
) 

Parameters

graphics
The reference Graphics object.

Return Value

This RasterImage dimensions corrected for resolution (DPI)

Example

For an example, refer to RasterImage.

Remarks

The XResolution and YResolution properties return the physical size of this RasterImage in dots per inch (DPI). This method returns the image size in pixels if it was to be drawn into the given Graphics object.

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