Ejemplo n.º 1
0
        private void UpdatePreview_Click(object sender, EventArgs e)
        {
            imagePacker.Reset();
            imagePacker.SetSize(Int32.Parse(Sizes.SelectedItem.ToString()));
            imagePacker.SetPadding(currentPaddingText != null ? Int32.Parse(currentPaddingText) : 0);
            if (FileListVM.Files.Count > 0)
            {
                FileListVM.Files.ToList().ForEach(x =>
                {
                    imagePacker.AddImagePath(x.FilePath);
                });

                imagePacker.PreviewOutput(PreviewImage);
            }
        }