MegaMan.Editor.Controls.ViewModels.Dialogs.TilesetImageImportDialogViewModel.TilesetImageImportDialogViewModel C# (CSharp) Method

TilesetImageImportDialogViewModel() public method

public TilesetImageImportDialogViewModel ( string imagePath, int snap, int offset ) : System.IO
imagePath string
snap int
offset int
return System.IO
        public TilesetImageImportDialogViewModel(string imagePath, int snap = 0, int offset = 0)
        {
            Image = SpriteBitmapCache.GetOrLoadImage(imagePath);
            ImageWidth = Image.PixelWidth;
            ImageHeight = Image.PixelHeight;

            FileName = Path.GetFileNameWithoutExtension(imagePath);
            Title = string.Format("Import {0}", FileName);

            OnPropertyChanged("Image");
            OnPropertyChanged("ImageWidth");
            OnPropertyChanged("ImageHeight");
            OnPropertyChanged("Title");

            Spacing = snap;
            Offset = offset;
        }
TilesetImageImportDialogViewModel