Leadtools.Controls Namespace > ImageViewer Object : ConvertTransform Method |
function Leadtools.Controls.ImageViewer.convertTransform( transform , sourceItem , destinationItem )
Parameter | Type | Description |
---|---|---|
transform | LeadMatrix | The transformation matrix to convert. |
sourceItem | ImageViewerItem | The source reference item. |
destinationItem | ImageViewerItem | The target reference item. |
Type | Description |
---|---|
LeadMatrix | The converted transformation matrix. |
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.