Example #1
0
 public LittleUser(Client client, bool showAll = true)
 {
     InitializeComponent();
     name.Text     = client.name;
     cnp.Text      = client.cnp;
     picture.Image = PictureManipulation.ResizeImage(PictureManipulation.ByteToImage(client.image), 200, 150);
     this.client   = client;
     if (!showAll)
     {
         editButton.Hide();
         ticketButton.Hide();
     }
 }
Example #2
0
 public NewClient(Client client)
 {
     InitializeComponent();
     errors.Text         = "";
     pic                 = PictureManipulation.ResizeImage(PictureManipulation.ByteToImage(client.image), 400, 300);
     clientPicture.Image = pic;
     takePic.Hide();
     retakePic.Show();
     filterInfoCollection = new FilterInfoCollection(FilterCategory.VideoInputDevice);
     if (filterInfoCollection.Count > 0)
     {
         videoCaptureDevice           = new VideoCaptureDevice(filterInfoCollection[0].MonikerString);
         videoCaptureDevice.NewFrame += VideoCaptureDevice_NewFrame;
     }
     clientName.Text    = client.name;
     clientPhone.Text   = client.phone;
     clientEmail.Text   = client.email;
     clientCnp.Text     = client.cnp;
     clientAddress.Text = client.address;
     clientNotes.Text   = client.notes;
     update             = true;
     upClient           = client;
     InitCustomFont(client.barcode.ToString());
 }
Example #3
0
 private void VideoCaptureDevice_NewFrame(object sender, AForge.Video.NewFrameEventArgs eventArgs)
 {
     clientPicture.Image = PictureManipulation.ResizeImage((Bitmap)eventArgs.Frame.Clone(), 400, 300);
 }
Example #4
0
        private void VideoCaptureDevice_NewFrame(object sender, AForge.Video.NewFrameEventArgs eventArgs)
        {
            map = PictureManipulation.ResizeImage((Bitmap)eventArgs.Frame.Clone(), 300, 150);

            pictureBox1.Image = map;
        }