VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.UI.VisualTools.UserInteraction Namespace / InteractionAreaAppearanceManager Class
Members Example



In This Topic
    InteractionAreaAppearanceManager Class
    In This Topic
    Stores and manages settings for interaction areas of visual tool.
    Object Model
    InteractionAreaAppearanceManager ClassUserInteractionVisualTool Class
    Syntax
    'Declaration
     
    Public Class InteractionAreaAppearanceManager 
    public class InteractionAreaAppearanceManager 
    public __gc class InteractionAreaAppearanceManager 
    public ref class InteractionAreaAppearanceManager 
    Example
    This example shows how to expand radius and change background color of resize and rotation points.
    ''' <summary>
    ''' Creates the custom interaction area appearance manager.
    ''' </summary>
    ''' <param name="visualTool">The visual tool.</param>
    ''' <returns>
    ''' The custom interaction area appearance manager.
    ''' </returns>
    Public Function CreateCustomInteractionAreaAppearanceManager(visualTool As Vintasoft.Imaging.UI.VisualTools.UserInteraction.UserInteractionVisualTool) As Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager
    	' create manager
    	Dim manager As New Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager()
    	manager.VisualTool = visualTool
                
    	' begin the initialization of manager
    	manager.BeginInit()
                
    	' resize point
                
    	manager.ResizePointsRadius = 10
    	manager.ResizePointsInteractionRadius = 10
    	manager.ResizePointsBackgroundColor = System.Drawing.Color.FromArgb(128, System.Drawing.Color.Yellow)
                
    	' rotation point
                
    	manager.RotationPointDistance = 30
    	manager.RotationPointRadius = 10
    	manager.RotationPointInteractionRadius = 10
    	manager.RotationPointBackgroundColor = System.Drawing.Color.FromArgb(128, System.Drawing.Color.Pink)
                
    	' end the initialization of manager
    	manager.EndInit()
                
    	' return the manager
    	Return manager
    End Function
    /// <summary>
    /// Creates the custom interaction area appearance manager.
    /// </summary>
    /// <param name="visualTool">The visual tool.</param>
    /// <returns>
    /// The custom interaction area appearance manager.
    /// </returns>
    public Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager CreateCustomInteractionAreaAppearanceManager(
        Vintasoft.Imaging.UI.VisualTools.UserInteraction.UserInteractionVisualTool visualTool)
    {
        // create manager
        Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager manager =
            new Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager();
        manager.VisualTool = visualTool;
                
        // begin the initialization of manager
        manager.BeginInit();
                
        // resize point
                
        manager.ResizePointsRadius = 10;
        manager.ResizePointsInteractionRadius = 10;
        manager.ResizePointsBackgroundColor = System.Drawing.Color.FromArgb(128, System.Drawing.Color.Yellow);
                
        // rotation point
                
        manager.RotationPointDistance = 30;
        manager.RotationPointRadius = 10;
        manager.RotationPointInteractionRadius = 10;
        manager.RotationPointBackgroundColor = System.Drawing.Color.FromArgb(128, System.Drawing.Color.Pink);
                
        // end the initialization of manager
        manager.EndInit();
                
        // return the manager
        return manager;
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager

    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also