convertPoint Method (ImageViewer)

Summary

Converts a LeadPointD from one coordinates to the other.

Syntax

JavaScript Syntax
ImageViewer.prototype.convertPoint = function(_item_, fromType, toType, point) 
TypeScript Syntax
convertPoint(_item_: ImageViewerItem, fromType: ImageViewerCoordinateType, toType: ImageViewerCoordinateType, point: LeadPointD): LeadPointD; 

Parameters

*_item_*

The reference item. This value can be null.

fromType

Original coordinates of point.

toType

Desired target coordinates.

point

The point to convert.

Return Value

The converted point

Remarks

For information on the various conversion types, refer to ConvertPoints.

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

Example

For an example, refer to ConvertPoint.

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