convertTransform Method

Summary

Converts a transformation matrix relative to one item to another.

Syntax
TypeScript
JavaScript
ImageViewer.prototype.convertTransform = function( 
   transform, 
   sourceItem, 
   destinationItem 
) 

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.