LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ImagePhysicalSize Method
See Also 



image
The source image.
graphics
The reference System.Drawing.Graphics object.
image
The source image.
graphics
The reference System.Drawing.Graphics object.
Gets a Leadtools.RasterImage's dimensions corrected for resolution (DPI).

Syntax

Visual Basic (Declaration) 
Public Shared Function ImagePhysicalSize( _
   ByVal image As RasterImage, _
   ByVal graphics As Graphics _
) As SizeF
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim graphics As Graphics
Dim value As SizeF
 
value = RasterImageConverter.ImagePhysicalSize(image, graphics)
C# 
public static SizeF ImagePhysicalSize( 
   RasterImage image,
   Graphics graphics
)
C++/CLI 
public:
static SizeF ImagePhysicalSize( 
   RasterImage^ image,
   Graphics^ graphics
) 

Parameters

image
The source image.
graphics
The reference System.Drawing.Graphics object.

Return Value

This Leadtools.RasterImage dimensions corrected for resolution (DPI)

Remarks

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

For more information refer to RasterImage and GDI/GDI+.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also