C# Класс Emgu.CV.UI.PanAndZoomPictureBox

A picture box with pan and zoom functionality
Наследование: System.Windows.Forms.PictureBox
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ZoomLevels double[]

Private Properties

Свойство Тип Описание
GetSelectedRectangle System.Drawing.Rectangle
InitializeComponent void
OnMouseDown void
OnMouseEnter void
OnMouseMove void
OnMouseUp void
OnMouseWheel void
OnResize void
OnScroll void
ReverseRectangle void
SetScrollBarVisibilityAndMaxMin void

Открытые методы

Метод Описание
PanAndZoomPictureBox ( ) : System

Create a picture box with pan and zoom functionality

SetZoomScale ( double zoomScale, Point fixPoint ) : void

Set the new zoom scale for the displayed image

Защищенные методы

Метод Описание
GetImageSize ( ) : Size

Get the size of the image

GetViewSize ( ) : Size

Get the size of the view area

Min ( Size s1, Size s2 ) : Size

Get the minimum of the two sizes

OnPaint ( PaintEventArgs pe ) : void

Paint the image

Приватные методы

Метод Описание
GetSelectedRectangle ( Point p1, Point p2 ) : Rectangle

Get the rectangle defined by the two points

InitializeComponent ( ) : void
OnMouseDown ( object sender, MouseEventArgs e ) : void
OnMouseEnter ( object sender, EventArgs e ) : void
OnMouseMove ( object sender, MouseEventArgs e ) : void

Used for tracking the mouse position on the image

OnMouseUp ( object sender, MouseEventArgs e ) : void
OnMouseWheel ( object sender, MouseEventArgs e ) : void
OnResize ( object sender, EventArgs e ) : void
OnScroll ( object sender, ScrollEventArgs e ) : void
ReverseRectangle ( ) : void
SetScrollBarVisibilityAndMaxMin ( ) : void

Описание методов

GetImageSize() защищенный Метод

Get the size of the image
protected GetImageSize ( ) : Size
Результат System.Drawing.Size

GetViewSize() защищенный Метод

Get the size of the view area
protected GetViewSize ( ) : Size
Результат System.Drawing.Size

Min() защищенный статический Метод

Get the minimum of the two sizes
protected static Min ( Size s1, Size s2 ) : Size
s1 System.Drawing.Size The first size
s2 System.Drawing.Size The second size
Результат System.Drawing.Size

OnPaint() защищенный Метод

Paint the image
protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs The paint event
Результат void

PanAndZoomPictureBox() публичный Метод

Create a picture box with pan and zoom functionality
public PanAndZoomPictureBox ( ) : System
Результат System

SetZoomScale() публичный Метод

Set the new zoom scale for the displayed image
public SetZoomScale ( double zoomScale, Point fixPoint ) : void
zoomScale double The new zoom scale
fixPoint Point The point to be fixed, in display coordinate
Результат void

Описание свойств

ZoomLevels публичное статическое свойство

The available zoom levels for the displayed image
public static double[] ZoomLevels
Результат double[]