C# Class TestingUtils.BitmapViewer

Datei anzeigen Open project: petergolde/PurplePen

Public Methods

Method Description
BeginCanvasDragging ( Point pt, MouseButtons endingButton ) : void
BitmapViewer ( ) : System
GetWorldToPixelXform ( ) : Matrix
PixelToWorld ( PointF ptPixel ) : PointF
PixelToWorldDistance ( float distPixel ) : float
ScrollRectangleIntoView ( RectangleF rect ) : void
ScrollView ( int dxPixels, int dyPixels ) : void
WorldToPixel ( PointF ptWorld ) : PointF
WorldToPixelDistance ( float distWorld ) : float
ZoomAroundPoint ( PointF zoomPtWorld, float newZoom ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CalculateWorldTransform ( ) : void
CanvasDrag ( Point pt ) : void
EndCanvasDragging ( Point pt ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

PointerMoved ( bool mouseInViewport, int xViewport, int yViewport ) : void
ScrollWindow ( IntPtr hwnd, int dx, int dy, IntPtr lpRect, IntPtr lpClipRect ) : bool
UpdateScrollBars ( ) : void
ViewportChanged ( ) : void
canvas_MouseCaptureChanged ( object sender, EventArgs e ) : void
canvas_MouseDown ( object sender, MouseEventArgs e ) : void
canvas_MouseEnter ( object sender, EventArgs e ) : void
canvas_MouseLeave ( object sender, EventArgs e ) : void
canvas_MouseMove ( object sender, MouseEventArgs e ) : void
canvas_MouseUp ( object sender, MouseEventArgs e ) : void
canvas_MouseWheel ( object sender, System e ) : void
canvas_Paint ( object sender, PaintEventArgs e ) : void
canvas_Resize ( object sender, EventArgs e ) : void
hScrollBar_Scroll ( object sender, ScrollEventArgs e ) : void
vScrollBar_Scroll ( object sender, ScrollEventArgs e ) : void

Method Details

BeginCanvasDragging() public method

public BeginCanvasDragging ( Point pt, MouseButtons endingButton ) : void
pt Point
endingButton MouseButtons
return void

BitmapViewer() public method

public BitmapViewer ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetWorldToPixelXform() public method

public GetWorldToPixelXform ( ) : Matrix
return Matrix

PixelToWorld() public method

public PixelToWorld ( PointF ptPixel ) : PointF
ptPixel PointF
return PointF

PixelToWorldDistance() public method

public PixelToWorldDistance ( float distPixel ) : float
distPixel float
return float

ScrollRectangleIntoView() public method

public ScrollRectangleIntoView ( RectangleF rect ) : void
rect RectangleF
return void

ScrollView() public method

public ScrollView ( int dxPixels, int dyPixels ) : void
dxPixels int
dyPixels int
return void

WorldToPixel() public method

public WorldToPixel ( PointF ptWorld ) : PointF
ptWorld PointF
return PointF

WorldToPixelDistance() public method

public WorldToPixelDistance ( float distWorld ) : float
distWorld float
return float

ZoomAroundPoint() public method

public ZoomAroundPoint ( PointF zoomPtWorld, float newZoom ) : void
zoomPtWorld PointF
newZoom float
return void