C# Class TpTrayUtility.Components.ImageViewPort

Inheritance: System.Windows.Forms.ScrollableControl
Afficher le fichier Open project: TargetProcess/Tp.TrayUtility Class Usage Examples

Méthodes publiques

Свойство Type Description
_viewPortInstance ImageViewPort

Private Properties

Свойство Type Description
AfterZoomRerender void
CalculateScrollPostions void
ClearSelection void
CreateTemporaryPicture string
DrawPrimitive void
FindPorpertyControl PropertyControlBase
GetCanvas System.Drawing.RectangleF
GetDelta System.Drawing.PointF
GetDeltaForCanvas System.Drawing.PointF
GetDeltaForPrimitive System.Drawing.PointF
GetPrimitiveAt Primitive
GetRealClientArea System.Drawing.Size
Normalization void
NormalizeEx void
PrimitiveTool TpTool
ResetSelectedPrimitive void
UpdatePropertyControlPosition void

Méthodes publiques

Méthode Description
AddPicture ( Bitmap bmp, bool isSelected ) : void
AddProperties ( PropertyControlBase pb ) : void
DeletePrimitive ( ) : void
ImageViewPort ( ) : System
MoveViewPort ( int x, int y ) : void
PropertyControlValueChanged ( object sender, EventArgs e ) : void
RedoLastAction ( ) : void
RemoveAllProperties ( ) : void
RemoveSelection ( ) : void
RenderToBitmap ( ) : Bitmap
RenderToGraphics ( Graphics g, float zoom ) : void
SelectTool ( TpTool tool ) : void
ToolChanged ( ) : void
UndoLastAction ( ) : void
UpdateCurrentTool ( ) : void
UpdatePropertiesView ( ) : void
ZoomIn ( ) : void
ZoomIn ( Point location ) : void
ZoomNormal ( ) : void
ZoomOut ( ) : void
ZoomOut ( Point location ) : void

Méthodes protégées

Méthode Description
CalculateGlobalBounds ( ) : RectangleF
CalculateGlobalBounds ( bool inflate ) : RectangleF
MouseToReal ( Point mousePos ) : PointF
MouseToReal ( PointF mousePos ) : PointF
OnInvalidated ( System.Windows.Forms.InvalidateEventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
OnMouseDoubleClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs pevent ) : void
OnResize ( EventArgs e ) : void
OnScroll ( ScrollEventArgs se ) : void

Private Methods

Méthode Description
AfterZoomRerender ( ) : void
CalculateScrollPostions ( ) : void
ClearSelection ( ) : void
CreateTemporaryPicture ( ) : string
DrawPrimitive ( Primitive primitive, Graphics graphics, float zoom, PointF offset ) : void
FindPorpertyControl ( ) : PropertyControlBase
GetCanvas ( ) : RectangleF
GetDelta ( RectangleF boundRect, PointF canvasOffset ) : PointF
GetDeltaForCanvas ( RectangleF boundRect ) : PointF
GetDeltaForPrimitive ( RectangleF boundRect ) : PointF
GetPrimitiveAt ( PointF pt ) : Primitive
GetRealClientArea ( Point location ) : Size
Normalization ( ) : void
NormalizeEx ( ) : void
PrimitiveTool ( Primitive primitive ) : TpTool
ResetSelectedPrimitive ( ) : void
UpdatePropertyControlPosition ( ) : void

Method Details

AddPicture() public méthode

public AddPicture ( Bitmap bmp, bool isSelected ) : void
bmp System.Drawing.Bitmap
isSelected bool
Résultat void

AddProperties() public méthode

public AddProperties ( PropertyControlBase pb ) : void
pb PropertyControlBase
Résultat void

CalculateGlobalBounds() protected méthode

protected CalculateGlobalBounds ( ) : RectangleF
Résultat System.Drawing.RectangleF

CalculateGlobalBounds() protected méthode

protected CalculateGlobalBounds ( bool inflate ) : RectangleF
inflate bool
Résultat System.Drawing.RectangleF

DeletePrimitive() public méthode

public DeletePrimitive ( ) : void
Résultat void

ImageViewPort() public méthode

public ImageViewPort ( ) : System
Résultat System

MouseToReal() protected méthode

protected MouseToReal ( Point mousePos ) : PointF
mousePos Point
Résultat System.Drawing.PointF

MouseToReal() protected méthode

protected MouseToReal ( PointF mousePos ) : PointF
mousePos System.Drawing.PointF
Résultat System.Drawing.PointF

MoveViewPort() public méthode

public MoveViewPort ( int x, int y ) : void
x int
y int
Résultat void

OnInvalidated() protected méthode

protected OnInvalidated ( System.Windows.Forms.InvalidateEventArgs e ) : void
e System.Windows.Forms.InvalidateEventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnLayout() protected méthode

protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
Résultat void

OnMouseDoubleClick() protected méthode

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseEnter() protected méthode

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseUp() protected méthode

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseWheel() protected méthode

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnPaintBackground() protected méthode

protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnScroll() protected méthode

protected OnScroll ( ScrollEventArgs se ) : void
se System.Windows.Forms.ScrollEventArgs
Résultat void

PropertyControlValueChanged() public méthode

public PropertyControlValueChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

RedoLastAction() public méthode

public RedoLastAction ( ) : void
Résultat void

RemoveAllProperties() public méthode

public RemoveAllProperties ( ) : void
Résultat void

RemoveSelection() public méthode

public RemoveSelection ( ) : void
Résultat void

RenderToBitmap() public méthode

public RenderToBitmap ( ) : Bitmap
Résultat System.Drawing.Bitmap

RenderToGraphics() public méthode

public RenderToGraphics ( Graphics g, float zoom ) : void
g System.Drawing.Graphics
zoom float
Résultat void

SelectTool() public méthode

public SelectTool ( TpTool tool ) : void
tool TpTool
Résultat void

ToolChanged() public méthode

public ToolChanged ( ) : void
Résultat void

UndoLastAction() public méthode

public UndoLastAction ( ) : void
Résultat void

UpdateCurrentTool() public méthode

public UpdateCurrentTool ( ) : void
Résultat void

UpdatePropertiesView() public méthode

public UpdatePropertiesView ( ) : void
Résultat void

ZoomIn() public méthode

public ZoomIn ( ) : void
Résultat void

ZoomIn() public méthode

public ZoomIn ( Point location ) : void
location Point
Résultat void

ZoomNormal() public méthode

public ZoomNormal ( ) : void
Résultat void

ZoomOut() public méthode

public ZoomOut ( ) : void
Résultat void

ZoomOut() public méthode

public ZoomOut ( Point location ) : void
location Point
Résultat void

Property Details

_viewPortInstance public_oe static_oe property

public static ImageViewPort,TpTrayUtility.Components _viewPortInstance
Résultat ImageViewPort