Transformation matrix of the whole item.
public LeadMatrix GetItemTransform(ImageViewerItem item)
public:LeadMatrix^ GetItemTransform(ImageViewerItem^ item)
item
The reference item, this value cannot be null.
The transformation matrix of the whole item.
GetItemTransform returns the transformation used to render an item in relation to the top-left corner of the viewer control.
For more information refer to Image Viewer Appearance, Image Viewer Transformation, and Image Viewer Bounds and Transform.
using Leadtools;using Leadtools.Controls;using Leadtools.Codecs;using Leadtools.Drawing;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;public void ImageViewerItemTransform_Example(int dy, LeadPoint position){double total = _imageViewer.GetItemViewBounds(_imageViewer.ActiveItem, ImageViewerItemPart.Item, false).Height;double factor;if (total > 0)factor = 1.0 - (dy * 2.0) / total;elsefactor = 1.0;// Get the origin in image coordinatevar origin = _imageViewer.ConvertPoint(_imageViewer.ActiveItem, ImageViewerCoordinateType.Control, ImageViewerCoordinateType.Image, position).ToLeadPointD();// Convert it to whatever the current transform isorigin = _imageViewer.ActiveItem.Transform.Transform(origin);var transform = LeadMatrix.Identity;transform.ScaleAt(1 / factor, 1 / factor, origin.X, origin.Y);_imageViewer.ActiveItem.Transform = LeadMatrix.Multiply(_imageViewer.ActiveItem.Transform, transform);}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
