public void FramesManagerResizeBitmapTest() { Bitmap image = new Bitmap(100, 100); image = FramesManager.ResizeBitmap(image, new Size(10, 10)); Assert.IsNotNull(image); }
private void PerpetratorDetails_Load(object sender, EventArgs e) { //resize and display one of the images of the perpetrator Size face_size = new Size(perpetrator_picture_box.Width, perpetrator_picture_box.Height); perpetrator_picture_box.Image = FramesManager.ResizeBitmap(perpetrator.faces[0].ToBitmap(), face_size); }
public SelectPerpetratorForm(Image <Bgr, byte> perpetrator_frame) { InitializeComponent(); Size new_size = new Size(perpetrator_frame_picture_box.Width, perpetrator_frame_picture_box.Height); perpetrator_frame_picture_box.Image = FramesManager.ResizeBitmap(perpetrator_frame.ToBitmap(), new_size); this.frame_with_perpetrator = perpetrator_frame; }