Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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
)
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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also