getItemImageSize Method (ImageViewer)


Image size of an item.


JavaScript Syntax
ImageViewer.prototype.getItemImageSize = function(_item_, useDpi) 
TypeScript Syntax
getItemImageSize(_item_: ImageViewerItem, useDpi: boolean): LeadSizeD; 



The reference item. This value cannot be null.


true to obtain the size using the current DPI setting, otherwise; false.

Return Value

The size of the item image in pixels.


Each ImageViewerItem can have a ImageViewerItem.Resolution value that can be used to set the resolution (in dots per inch, or DPI) of the item. When the value of the DPI is different than the screen resolution and the viewer is instructed to view items using the true logical size (using UseDpi then the viewer will add the scaling required into the image transformation.


Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize