C# Class LabelPlus.PicView

Inheritance: System.Windows.Forms.UserControl
显示文件 Open project: noodlefighter/LabelPlus Class Usage Examples

Public Properties

Property Type Description
LabelUserAction UserActionEventHandler
ZoomChanged EventHandler

Private Properties

Property Type Description
InitializeComponent void
OnZoomChanged void
PicView_Label_KeyUp void
PicView_Load void
PicView_MouseMove void
PicView_Paint void
PicView_Resize void
PicView_label_KeyDown void
getLabelIndex int
getLabelRectangle System.Drawing.RectangleF
getLabelRectangle System.Drawing.RectangleF

Public Methods

Method Description
ClearLabels ( ) : void
ClientToPercentPoint ( PointF poi ) : PointF
LabelSideLength ( ) : float
LabelSideLength ( Image image ) : float
LoadImage ( string path ) : bool
MakeImage ( Image &image, Image &imageOriginal, float zoom, List labels = null ) : bool
MakeImageNow ( ) : void
PicView ( ) : System
PicView_Draging_MouseDown ( object sender, MouseEventArgs e ) : void
PicView_Draging_MouseMove ( object sender, MouseEventArgs e ) : void
PicView_Draging_MouseUp ( object sender, MouseEventArgs e ) : void
PicView_Label_MouseClick ( object sender, MouseEventArgs e ) : void
PicView_Zooming_MouseWheel ( object sender, MouseEventArgs e ) : void
Refresh ( ) : void
SetLabelVisual ( int index ) : void
SetLabels ( List items, string groupString, Color colors ) : void
zooming_drawing ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

清理所有正在使用的资源。

Private Methods

Method Description
InitializeComponent ( ) : void

设计器支持所需的方法 - 不要 使用代码编辑器修改此方法的内容。

OnZoomChanged ( ) : void
PicView_Label_KeyUp ( object sender, KeyEventArgs e ) : void
PicView_Load ( object sender, EventArgs e ) : void
PicView_MouseMove ( object sender, MouseEventArgs e ) : void
PicView_Paint ( object sender, PaintEventArgs e ) : void
PicView_Resize ( object sender, EventArgs e ) : void
PicView_label_KeyDown ( object sender, KeyEventArgs e ) : void
getLabelIndex ( int x, int y ) : int
getLabelRectangle ( float x, float y ) : RectangleF
getLabelRectangle ( float x, float y, Image image ) : RectangleF

Method Details

ClearLabels() public method

public ClearLabels ( ) : void
return void

ClientToPercentPoint() public method

public ClientToPercentPoint ( PointF poi ) : PointF
poi System.Drawing.PointF
return System.Drawing.PointF

Dispose() protected method

清理所有正在使用的资源。
protected Dispose ( bool disposing ) : void
disposing bool 如果应释放托管资源,为 true;否则为 false。
return void

LabelSideLength() public method

public LabelSideLength ( ) : float
return float

LabelSideLength() public method

public LabelSideLength ( Image image ) : float
image Image
return float

LoadImage() public method

public LoadImage ( string path ) : bool
path string
return bool

MakeImage() public method

public MakeImage ( Image &image, Image &imageOriginal, float zoom, List labels = null ) : bool
image Image
imageOriginal Image
zoom float
labels List
return bool

MakeImageNow() public method

public MakeImageNow ( ) : void
return void

PicView() public method

public PicView ( ) : System
return System

PicView_Draging_MouseDown() public method

public PicView_Draging_MouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

PicView_Draging_MouseMove() public method

public PicView_Draging_MouseMove ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

PicView_Draging_MouseUp() public method

public PicView_Draging_MouseUp ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

PicView_Label_MouseClick() public method

public PicView_Label_MouseClick ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

PicView_Zooming_MouseWheel() public method

public PicView_Zooming_MouseWheel ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

Refresh() public method

public Refresh ( ) : void
return void

SetLabelVisual() public method

public SetLabelVisual ( int index ) : void
index int
return void

SetLabels() public method

public SetLabels ( List items, string groupString, Color colors ) : void
items List
groupString string
colors Color
return void

zooming_drawing() public method

public zooming_drawing ( ) : void
return void

Property Details

LabelUserAction public_oe property

public UserActionEventHandler LabelUserAction
return UserActionEventHandler

ZoomChanged public_oe property

public EventHandler ZoomChanged
return EventHandler