convertTransform Method (ImageViewer)

Summary

Converts a transformation matrix relative to one item to another.

Syntax

JavaScript Syntax
ImageViewer.prototype.convertTransform = function(_transform_, sourceItem, destinationItem) 
TypeScript Syntax
convertTransform(_transform_: LeadMatrix, sourceItem: ImageViewerItem, destinationItem: ImageViewerItem): LeadMatrix; 

Parameters

*_transform_*

The transformation matrix to convert.

sourceItem

The source reference item.

destinationItem

The target reference item.

Return Value

The converted transformation matrix.

Remarks

This method is used by the ImageViewer in situations when a transformation matrix relative to an item need to be converted to be relative to another. For example, when the floater is dragged from one item and dropped to another, the ImageViewerItem.FloaterTransform value is converted using ConvertTransform to keep the original offset and scale values but relative to the new item.

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