convertTransform Method

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly