←Select platform

GetImageWidthDpi Method

Summary
Gets the width of this RasterImage in pixels, taking ViewPerspective and XResolution into account.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public int GetImageWidthDpi( 
   bool useDpi 
) 
- (NSInteger)imageWidthWithDpi:(BOOL)useDpi 
public int getImageWidthDpi( 
   boolean booleanValue 
); 
public: 
int GetImageWidthDpi(  
   bool useDpi 
)  
def GetImageWidthDpi(self,useDpi): 

Parameters

useDpi
true to take into account the resolution (DPI) of the image; false to ignore the DPI.

Return Value

The width of this RasterImage in pixels, taking ViewPerspective and XResolution into account.

Remarks

Use Width to get the actual width of the image data scanlines.

For more information refer to Accounting For View Perspective.

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 Assembly

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