getItemBounds Method (ImageViewer)

Summary

Current logical (excluding the current transformation) bounds of any part of an item.

Syntax

JavaScript Syntax
ImageViewer.prototype.getItemBounds = function(item, part)
TypeScript Syntax
getItemBounds(item: ImageViewerItem, part: ImageViewerItemPart): LeadRectD;

Parameters

item

The item. Must be a valid item inside this viewer.

part

The item part requested.

Return Value

The bounding rectangle in pixels or LeadRectD.Empty if the item is not visible or does not have an image.

Remarks

Use ConvertBoundsToView to convert a bound from logical to physical coordinates.

For more information refer to Image Viewer Appearance, Image Viewer Transformation, and Image Viewer Bounds and Transform.

Requirements

Target Platforms

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