←Select platform

ImagePhysicalSize Method

Summary
Gets a Leadtools.RasterImage's dimensions corrected for resolution (DPI).
Syntax
C#
C++/CLI
Python
public static SizeF ImagePhysicalSize( 
   RasterImage image, 
   Graphics graphics 
) 
public: 
static SizeF ImagePhysicalSize(  
   RasterImage^ image, 
   Graphics^ graphics 
)  
def ImagePhysicalSize(self,image,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

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.