Occurs when the user is using the InteractiveMode to move the FloaterImage.
public event EventHandler<RasterViewerPointEventArgs> InteractiveFloater public:event EventHandler<RasterViewerPointEventArgs^>^ InteractiveFloater
public:event EventHandler<RasterViewerPointEventArgs^>^ InteractiveFloater
The event handler receives an argument of type RasterViewerPointEventArgs containing data related to this event. The following RasterViewerPointEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Cancel (Inherited from Leadtools.WinForms.RasterViewerInteractiveEventArgs) | Gets or sets a value indicating whether the interactive mode should be canceled. |
| Point | Gets the interactive mode event data. |
| Status (Inherited from Leadtools.WinForms.RasterViewerInteractiveEventArgs) | Gets the current status of the interactive mode. |
Only occurs when the InteractiveMode property is set to RasterViewerInteractiveMode.Floater.
using Leadtools.WinForms;using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.Color;using Leadtools.Drawing;private void viewer_InteractiveFloater(object sender, RasterViewerPointEventArgs e){// show information about the user interactionRasterImageViewer viewer = sender as RasterImageViewer;Console.WriteLine("Status: {0}, Canceled: {1}, Point: {2}, Floater Position: {3}", e.Status, e.Cancel, e.Point, viewer.FloaterPosition);}public void RasterImageViewer_FloaterPosition(RasterImageViewer viewer){// hook into the viewer InteractiveFloater event to get updated whenever the user moves the floater.viewer.InteractiveFloater += new EventHandler<RasterViewerPointEventArgs>(viewer_InteractiveFloater);// add a floater the viewer and start the floater interactive mode// we are going to create the floater image manually as a red ellipse with a region.RasterColor[] palette = new RasterColor[0];RasterImage floaterImage = new RasterImage(RasterMemoryFlags.Conventional,200,200,24,RasterByteOrder.Bgr,RasterViewPerspective.TopLeft,palette,IntPtr.Zero,0);using (RasterImageGdiPlusGraphicsContainer container = new RasterImageGdiPlusGraphicsContainer(floaterImage)){container.Graphics.FillRectangle(Brushes.Black, 0, 0, floaterImage.ImageWidth, floaterImage.ImageHeight);container.Graphics.FillEllipse(Brushes.Red, 0, 0, floaterImage.ImageWidth, floaterImage.ImageHeight);}floaterImage.AddColorToRegion(RasterColor.FromKnownColor(RasterKnownColor.Red), RasterRegionCombineMode.Set);viewer.FloaterImage = floaterImage;viewer.FloaterVisible = true;viewer.FloaterPosition = new Point(100, 100);viewer.InteractiveMode = RasterViewerInteractiveMode.Floater;MessageBox.Show("Click and move the floater");}
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
