LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)
LEAD Technologies, Inc

ImagePhysicalSize Method






The source image.
The reference System.Drawing.Graphics object.
Gets a Leadtools.RasterImage's dimensions corrected for resolution (DPI).
Syntax
public static SizeF ImagePhysicalSize( 
   RasterImage image,
   Graphics graphics
)
'Declaration
 
Public Shared Function ImagePhysicalSize( _
   ByVal image As RasterImage, _
   ByVal graphics As Graphics _
) As SizeF
'Usage
 
Dim image As RasterImage
Dim graphics As Graphics
Dim value As SizeF
 
value = RasterImageConverter.ImagePhysicalSize(image, graphics)
public static SizeF ImagePhysicalSize( 
   RasterImage image,
   Graphics graphics
)
 function Leadtools.Drawing.RasterImageConverter.ImagePhysicalSize( 
   image ,
   graphics 
)
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImageConverter Class
RasterImageConverter Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.