←Select platform

FloaterOpacity Property

Summary

Opacity value used to render the floater while this mode is working.

Syntax
C#
C++/CLI
public double FloaterOpacity { get; set; } 
public:  
   property double FloaterOpacity 
   { 
      double get() 
      void set(double value) 
   } 

Property Value

The opacity value used to render the floater while this mode is working. Default value is 1.0 (fully opaque).

Remarks

You can change this value to 0.5 for example to show a ghost image of the floater when the user clicks and drags it over the viewer.

This value is multiplied by the current ImageViewerItem.FloaterOpacity value when the mode is dragging and zooming the floater. When working stops, the original value is set back into ImageViewerItem.FloaterOpacity.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
_imageViewer.InteractiveModes.BeginUpdate(); 
_imageViewer.InteractiveModes.Add(new ImageViewerFloaterInteractiveMode 
{ 
   ZoomKeyModifier = Keys.None, 
   IsEnabled = true, 
   FloaterOpacity = 0.5 
}); 
_imageViewer.InteractiveModes.EndUpdate(); 
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.