C# Class BiomePainter.BitmapSelector.BitmapSelector

Inheritance: System.Windows.Forms.UserControl
Show file Open project: mblaine/BiomePainter

Public Properties

Property Type Description
Brush BrushType
BrushDiameter int
BrushDiameterMax int
BrushLayerIndex int
Layers List
Magnification int
MagnificationMax int
OffsetStep int
OffsetX int
OffsetY int
SelectionColor Color
SelectionLayerIndex int
ShowToolTips bool
ToolTips ].String[

Private Properties

Property Type Description
BitmapSelector_MouseCaptureChanged void
BitmapSelector_MouseDown void
BitmapSelector_MouseLeave void
BitmapSelector_MouseMove void
BitmapSelector_MouseUp void
BitmapSelector_MouseWheel void
InitializeComponent void
PanDown void
PanLeft void
PanRight void
PanUp void
RecreateBuffers void
RedrawBrushLayer void
Translate Point
scrollHorizontal_Scroll void
scrollVertical_Scroll void

Public Methods

Method Description
AddLayer ( Layer l ) : int
BitmapSelector ( ) : System
CancelCustomBrush ( ) : void
InvertSelection ( ) : void
Redraw ( ) : void
Reset ( ) : void
SelectAll ( ) : void
SelectNone ( ) : void
SetCustomBrush ( Bitmap b ) : void
Zoom ( int magnififcation, int offsetX, int offsetY, bool redraw = true ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnBrushDiameterChanged ( BrushDiameterEventArgs e ) : void
OnCustomBrushClick ( CustomBrushClickEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnSelectionChanged ( String description ) : void
OnZoom ( ZoomEventArgs e ) : void
ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Method Description
BitmapSelector_MouseCaptureChanged ( object sender, EventArgs e ) : void
BitmapSelector_MouseDown ( object sender, MouseEventArgs e ) : void
BitmapSelector_MouseLeave ( object sender, EventArgs e ) : void
BitmapSelector_MouseMove ( object sender, MouseEventArgs e ) : void
BitmapSelector_MouseUp ( object sender, MouseEventArgs e ) : void
BitmapSelector_MouseWheel ( object sender, MouseEventArgs e ) : void
InitializeComponent ( ) : void

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

PanDown ( ) : void
PanLeft ( ) : void
PanRight ( ) : void
PanUp ( ) : void
RecreateBuffers ( ) : void
RedrawBrushLayer ( Point p, bool justClear = false ) : void
Translate ( Point e ) : Point
scrollHorizontal_Scroll ( object sender, ScrollEventArgs e ) : void
scrollVertical_Scroll ( object sender, ScrollEventArgs e ) : void

Method Details

AddLayer() public method

public AddLayer ( Layer l ) : int
l Layer
return int

BitmapSelector() public method

public BitmapSelector ( ) : System
return System

CancelCustomBrush() public method

public CancelCustomBrush ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InvertSelection() public method

public InvertSelection ( ) : void
return void

OnBrushDiameterChanged() protected method

protected OnBrushDiameterChanged ( BrushDiameterEventArgs e ) : void
e BrushDiameterEventArgs
return void

OnCustomBrushClick() protected method

protected OnCustomBrushClick ( CustomBrushClickEventArgs e ) : void
e CustomBrushClickEventArgs
return void

OnPaint() protected method

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

OnResize() protected method

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

OnSelectionChanged() protected method

protected OnSelectionChanged ( String description ) : void
description String
return void

OnZoom() protected method

protected OnZoom ( ZoomEventArgs e ) : void
e ZoomEventArgs
return void

ProcessCmdKey() protected method

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool

Redraw() public method

public Redraw ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SelectAll() public method

public SelectAll ( ) : void
return void

SelectNone() public method

public SelectNone ( ) : void
return void

SetCustomBrush() public method

public SetCustomBrush ( Bitmap b ) : void
b System.Drawing.Bitmap
return void

Zoom() public method

public Zoom ( int magnififcation, int offsetX, int offsetY, bool redraw = true ) : void
magnififcation int
offsetX int
offsetY int
redraw bool
return void

Property Details

Brush public property

public BrushType Brush
return BrushType

BrushDiameter public property

public int BrushDiameter
return int

BrushDiameterMax public property

public int BrushDiameterMax
return int

BrushLayerIndex public property

public int BrushLayerIndex
return int

Layers public property

public List Layers
return List

Magnification public property

public int Magnification
return int

MagnificationMax public property

public int MagnificationMax
return int

OffsetStep public property

public int OffsetStep
return int

OffsetX public property

public int OffsetX
return int

OffsetY public property

public int OffsetY
return int

SelectionColor public property

public Color SelectionColor
return Color

SelectionLayerIndex public property

public int SelectionLayerIndex
return int

ShowToolTips public property

public bool ShowToolTips
return bool

ToolTips public property

public String[,] ToolTips
return ].String[