Transformation matrix used by the floater image of this item.
Object.defineProperty(ImageViewerItem.prototype, 'floaterTransform',
get: function(),
set: function(value)
)
floaterTransform: LeadMatrix;
The transformation matrix used by the floater image of this item. Default value is Identity.
Use this transform to translate, scale or rotate the floater image. ImageViewerFloaterInteractiveMode will update this value when the user clicks and drags on the floater image.
Changing the value of this property will fire the ItemChanged event with ImageViewerItemChangedReason.FloaterTransform.
var item = null;
var image = null;
if (this._imageViewer.items.count > 0) {
item = this._imageViewer.items.item(0);
canvas = item.canvas;
}
if (canvas == null)
return;
if (item.floater == null) {
var ctx = canvas.getContext("2d");
var imageData = ctx.getImageData(10, 10, item.size.width / 2, item.size.height / 2);
item.floater = document.createElement("canvas");
var ctx = item.floater.getContext("2d");
ctx.putImageData(imageData, imageData.width, imageData.height);
var transform = lt.LeadMatrix.identity;
transform.translate(-50, -50);
item.floaterTransform = lt.LeadMatrix.multiply(transform, item.floaterTransform);
}
else {
var floater = item.floater;
var transform = item.floaterTransform;
transform.translate(0, 100);
item.floaterTransform = lt.LeadMatrix.multiply(transform, item.floaterTransform);
}
Products |
Support |
Feedback: floaterTransform Property (ImageViewerItem) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.3.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.