C# Class SpriteMaker.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: INotifyPropertyChanged
Mostrar archivo Open project: impworks/xna.geek.engine

Public Methods

Method Description
MainWindow ( ) : System

Protected Methods

Method Description
notifyPropertyChanged ( string property ) : void

Private Methods

Method Description
AddFilesCommand_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
DeleteCommand_CanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
DeleteCommand_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
GenerateCommand_CanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
GenerateCommand_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
createCanvas ( ICollection images ) : Bitmap

Create a new canvas to put all images onto.

generateSprite ( string fileName ) : void

Create a sprite out of the list.

loadImages ( IEnumerable sources ) : List

Load images into memory.

pasteFrames ( Image target, IEnumerable sources ) : void

Paste all frames onto a single image.

showSuccess ( string fileName ) : void
validateImages ( ICollection images ) : void

Make sure there are enough images and they're of equal size!

Method Details

MainWindow() public method

public MainWindow ( ) : System
return System

notifyPropertyChanged() protected method

protected notifyPropertyChanged ( string property ) : void
property string
return void