This property converts an ImageKit control to a pan window.

[Visual Basic]Public Property PanWindowMode As Boolean
[C#]public bool PanWindowMode {get; set;}

Property Value

Value Explanation
True Converts the ImageKit control to a pan window
False The ImageKit control is an ordinary ImageKit control (not a pan window)

Explanation

The PanWindowMode property converts an ImageKit control into a pan window. By setting this property to true, the ImageKit control will act as a pan window control for another ImageKit control and its properties can be set using the Pan Window interface properties. The PanWindowImageKit property associates an ImageKit control (parent control) with the pan window. Images loaded into the parent ImageKit control will automatically be displayed in the associated pan window control.

Note: The ImageKit.NET3 has a PanWindow interface which displays a Pan Window control as a seperate control in a separate window. To use the Pan Window interface and display the Pan Window control, the PanWindowMode property must be set to False. When the PanWindowMode property is true, an ImageKit control is used as a pan window and the Pan Window control cannot be used.

When the PanWindowMode property is true and an ImageKit control is converted into a pan window, its DisplayMode property will be Display.Scale. Images cannot be directly loaded into this converted ImageKit control. Only images loaded into the parent ImageKit control associated with this pan window will be displayed. Furthermore, Effect, Scan, and Annotation function will be disabled. In other words,  ImageKit control converted into a pan window can only be used as a pan window for its associated parent ImageKit control.

Example code that sets ImageKit2 to act as a pan window for ImageKit1

In VisualBasic.NET

ImageKit1.PanWindowImageKit = ImageKit2
ImageKit1.ShowPanWindowImage = True 'Sets the image to be displayed in the pan window (in this case ImageKit2)
ImageKit2.PanWindowMode = True 'Converts ImageKit2 into a pan window
ImageKit2.PanWindow.Color = Color.Yellow 'Sets the background color for the pan window
ImageKit2.PanWindow.RectColor = Color.Red 'Sets the border color for the scroll rectangle in the pan window
ImageKit2.PanWindow.EnableClick = True 'When the mouse is clicked outside the rectangle in the pan window, the image displayed in the ImageKit control is scrolled to that position.
ImageKit2.PanWindow.RectMouseCursor = Cursor.Hand 'Sets the shape of the cursor in the pan window
ImageKit2.PanWindow.RectReverse = False 'reverses the color within the pan window rectangle

In C#.NET

ImageKit1.PanWindowImageKit = ImageKit2;
ImageKit1.ShowPanWindowImage = true; //Sets the image to be displayed in the pan window (in this case ImageKit2)
ImageKit2.PanWindowMode = true; //Converts ImageKit2 into a pan window
ImageKit2.PanWindow.Color = Color.Yellow; //Sets the background color for the pan window
ImageKit2.PanWindow.RectColor = Color.Red; //Sets the border color for the scroll rectangle in the pan window
ImageKit2.PanWindow.EnableClick = true; //When the mouse is clicked outside the rectangle in the pan window, the image displayed in the ImageKit control is scrolled to that position.
ImageKit2.PanWindow.RectMouseCursor = Cursor.Hand; //Sets the shape of the cursor in the pan window
ImageKit2.PanWindow.RectReverse = false; //reverses the color within the pan window rectangle

See Also

ImageKit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET3 is created by Newtone Corporation