C# Class TileIconifier.Controls.PictureBox.PannablePictureBox

Datei anzeigen Open project: Jonno12345/TileIconifier Class Usage Examples

Public Properties

Property Type Description
OverlayColor Color
PannablePictureBoxImage PannablePictureBoxImage
ShowTextOverlay bool
TextOverlay string
TextOverlayPoint Point

Public Methods

Method Description
AlignBottom ( ) : void
AlignLeft ( ) : void
AlignRight ( ) : void
AlignTop ( ) : void
AlignXMiddle ( ) : void
AlignYMiddle ( ) : void
CenterImage ( bool invalidateImage = true ) : void
EnlargeImage ( ) : void
Nudge ( int x = null, int y = null ) : void
PannablePictureBox ( ) : System
PannablePictureBoxImage_OnPannablePictureImagePropertyChange ( object sender, EventArgs e ) : void
ResetImage ( ) : void
ResetZoom ( bool invalidateImage = true ) : void
SetImage ( Image image, int width, int height, int x, int y ) : void
SetZoom ( decimal value ) : void
ShrinkImage ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Align ( int x = null, int y = null ) : void
DrawTextOverlay ( PaintEventArgs e ) : void
GetZoomPercentage ( ) : decimal
Image_OnPannablePictureNewImageSet ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

PannablePictureBox_Load ( object sender, EventArgs e ) : void
PctBox_MouseWheel ( object sender, MouseEventArgs e ) : void
SetResolution ( Image image, int width, int height ) : Image
TriggerUpdate ( bool invalidate = true ) : void
pctBox_Click ( object sender, EventArgs e ) : void
pctBox_DoubleClick ( object sender, EventArgs e ) : void
pctBox_MouseDown ( object sender, MouseEventArgs e ) : void
pctBox_MouseMove ( object sender, MouseEventArgs e ) : void
pctBox_MouseUp ( object sender, MouseEventArgs e ) : void
pctBox_Paint ( object sender, PaintEventArgs e ) : void

Method Details

AlignBottom() public method

public AlignBottom ( ) : void
return void

AlignLeft() public method

public AlignLeft ( ) : void
return void

AlignRight() public method

public AlignRight ( ) : void
return void

AlignTop() public method

public AlignTop ( ) : void
return void

AlignXMiddle() public method

public AlignXMiddle ( ) : void
return void

AlignYMiddle() public method

public AlignYMiddle ( ) : void
return void

CenterImage() public method

public CenterImage ( bool invalidateImage = true ) : void
invalidateImage bool
return void

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

EnlargeImage() public method

public EnlargeImage ( ) : void
return void

Nudge() public method

public Nudge ( int x = null, int y = null ) : void
x int
y int
return void

PannablePictureBox() public method

public PannablePictureBox ( ) : System
return System

PannablePictureBoxImage_OnPannablePictureImagePropertyChange() public method

public PannablePictureBoxImage_OnPannablePictureImagePropertyChange ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

ResetImage() public method

public ResetImage ( ) : void
return void

ResetZoom() public method

public ResetZoom ( bool invalidateImage = true ) : void
invalidateImage bool
return void

SetImage() public method

public SetImage ( Image image, int width, int height, int x, int y ) : void
image Image
width int
height int
x int
y int
return void

SetZoom() public method

public SetZoom ( decimal value ) : void
value decimal
return void

ShrinkImage() public method

public ShrinkImage ( ) : void
return void

Property Details

OverlayColor public_oe property

public Color OverlayColor
return Color

PannablePictureBoxImage public_oe property

public PannablePictureBoxImage,TileIconifier.Controls.PictureBox PannablePictureBoxImage
return PannablePictureBoxImage

ShowTextOverlay public_oe property

public bool ShowTextOverlay
return bool

TextOverlay public_oe property

public string TextOverlay
return string

TextOverlayPoint public_oe property

public Point TextOverlayPoint
return Point