C# Class TestingUtils.BitmapViewer

Afficher le fichier Open project: petergolde/PurplePen

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

public BeginCanvasDragging ( Point pt, MouseButtons endingButton ) : void
pt Point
endingButton MouseButtons
Résultat void

BitmapViewer() public méthode

public BitmapViewer ( ) : System
Résultat System

Dispose() protected méthode

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

GetWorldToPixelXform() public méthode

public GetWorldToPixelXform ( ) : Matrix
Résultat Matrix

PixelToWorld() public méthode

public PixelToWorld ( PointF ptPixel ) : PointF
ptPixel PointF
Résultat PointF

PixelToWorldDistance() public méthode

public PixelToWorldDistance ( float distPixel ) : float
distPixel float
Résultat float

ScrollRectangleIntoView() public méthode

public ScrollRectangleIntoView ( RectangleF rect ) : void
rect RectangleF
Résultat void

ScrollView() public méthode

public ScrollView ( int dxPixels, int dyPixels ) : void
dxPixels int
dyPixels int
Résultat void

WorldToPixel() public méthode

public WorldToPixel ( PointF ptWorld ) : PointF
ptWorld PointF
Résultat PointF

WorldToPixelDistance() public méthode

public WorldToPixelDistance ( float distWorld ) : float
distWorld float
Résultat float

ZoomAroundPoint() public méthode

public ZoomAroundPoint ( PointF zoomPtWorld, float newZoom ) : void
zoomPtWorld PointF
newZoom float
Résultat void