/*private void pictureBox1_MouseEnter(object sender, EventArgs e)
         * {
         *  //pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
         *  pictureBox1.Cursor = Cursors.Hand;
         * }
         *
         * private void pictureBox1_MouseLeave(object sender, EventArgs e)
         * {
         *  pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
         *  pictureBox1.Cursor = Cursors.Default;
         * }*/

        private void buttonFullScreen_Click(object sender, EventArgs e)
        {
            var ScanPreviewFullScreen = new ScanPreviewFullScreenNew(Controller.ConvertImageToByteArray());

            ScanPreviewFullScreen.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            var ScanPreviewFullScreen = new ScanPreviewFullScreenNew(metadata.Image);

            ScanPreviewFullScreen.Show();
        }