C# Class TpTrayUtility.Components.ImageViewPort

Inheritance: System.Windows.Forms.ScrollableControl
ファイルを表示 Open project: TargetProcess/Tp.TrayUtility Class Usage Examples

Public Properties

Property Type Description
_viewPortInstance ImageViewPort

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

public AddPicture ( Bitmap bmp, bool isSelected ) : void
bmp System.Drawing.Bitmap
isSelected bool
return void

AddProperties() public method

public AddProperties ( PropertyControlBase pb ) : void
pb PropertyControlBase
return void

CalculateGlobalBounds() protected method

protected CalculateGlobalBounds ( ) : RectangleF
return System.Drawing.RectangleF

CalculateGlobalBounds() protected method

protected CalculateGlobalBounds ( bool inflate ) : RectangleF
inflate bool
return System.Drawing.RectangleF

DeletePrimitive() public method

public DeletePrimitive ( ) : void
return void

ImageViewPort() public method

public ImageViewPort ( ) : System
return System

MouseToReal() protected method

protected MouseToReal ( Point mousePos ) : PointF
mousePos Point
return System.Drawing.PointF

MouseToReal() protected method

protected MouseToReal ( PointF mousePos ) : PointF
mousePos System.Drawing.PointF
return System.Drawing.PointF

MoveViewPort() public method

public MoveViewPort ( int x, int y ) : void
x int
y int
return void

OnInvalidated() protected method

protected OnInvalidated ( System.Windows.Forms.InvalidateEventArgs e ) : void
e System.Windows.Forms.InvalidateEventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnLayout() protected method

protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
return void

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseEnter() protected method

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnScroll() protected method

protected OnScroll ( ScrollEventArgs se ) : void
se System.Windows.Forms.ScrollEventArgs
return void

PropertyControlValueChanged() public method

public PropertyControlValueChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RedoLastAction() public method

public RedoLastAction ( ) : void
return void

RemoveAllProperties() public method

public RemoveAllProperties ( ) : void
return void

RemoveSelection() public method

public RemoveSelection ( ) : void
return void

RenderToBitmap() public method

public RenderToBitmap ( ) : Bitmap
return System.Drawing.Bitmap

RenderToGraphics() public method

public RenderToGraphics ( Graphics g, float zoom ) : void
g System.Drawing.Graphics
zoom float
return void

SelectTool() public method

public SelectTool ( TpTool tool ) : void
tool TpTool
return void

ToolChanged() public method

public ToolChanged ( ) : void
return void

UndoLastAction() public method

public UndoLastAction ( ) : void
return void

UpdateCurrentTool() public method

public UpdateCurrentTool ( ) : void
return void

UpdatePropertiesView() public method

public UpdatePropertiesView ( ) : void
return void

ZoomIn() public method

public ZoomIn ( ) : void
return void

ZoomIn() public method

public ZoomIn ( Point location ) : void
location Point
return void

ZoomNormal() public method

public ZoomNormal ( ) : void
return void

ZoomOut() public method

public ZoomOut ( ) : void
return void

ZoomOut() public method

public ZoomOut ( Point location ) : void
location Point
return void

Property Details

_viewPortInstance public_oe static_oe property

public static ImageViewPort,TpTrayUtility.Components _viewPortInstance
return ImageViewPort