void collageBtn_Click(object sender, System.EventArgs e) { this.requiredFillRatio = (double)fillRatio.Value / 100; this.requiredOrientRatio = (double)orientRatio.Value / 100; Collage resultForm = new Collage(this); this.Enabled = false; resultForm.Show(); }
public void Generate(int image_count, bool have_faces) { Collage.Images.Clear(); // Console.Write("Selecting Images\r"); ReadImages(image_count, have_faces); // Console.Write("Arranging Images\r"); Collage.Arrange(); // Console.Write("Generating Collage\r"); Bitmap = Collage.Render(); }
public Result(Collage collageForm) { InitializeComponent(); this.collageForm = collageForm; this.imgRectArray = collageForm.rects; this.Width = this.collageForm.frame.Width + 30; this.Height = this.collageForm.frame.Height + 30; DisplayResults(this.collageForm.frame.Width, this.collageForm.frame.Height); }