C# Class MapEditor.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Show file Open project: mokasocial/PrivacyDefense Class Usage Examples

Public Properties

Property Type Description
TileDimensions Point

Public Methods

Method Description
MainWindow ( ) : System

Private Methods

Method Description
ColorToInt ( System color ) : int
GenerateMap ( ) : void
GrabData ( ) : void
LoadTileTexture ( ) : void
Map_Clicked ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Save_Map_Click ( object sender, RoutedEventArgs e ) : void

Event handler called when the save map button is clicked.

_bitmapFromSource ( System.Windows.Media.Imaging.BitmapSource bitmapsource ) : System.Drawing.Bitmap
_bitmapToSource ( System bitmap ) : System.Windows.Media.Imaging.BitmapSource

Method Details

MainWindow() public method

public MainWindow ( ) : System
return System

Property Details

TileDimensions public property

public Point TileDimensions
return Point