Ejemplo n.º 1
0
        private void DrawCapturedImage(UFScanner Scanner)
        {
            Graphics  g    = pbImageFrame.CreateGraphics();
            Rectangle rect = new Rectangle(0, 0, pbImageFrame.Width, pbImageFrame.Height);

            try {
                //
                Scanner.DrawCaptureImageBuffer(g, rect, cbDetectCore.Checked);
                //
                //Bitmap bitmap;
                //int Resolution;
                //Scanner.GetCaptureImageBuffer(out bitmap, out Resolution);
                //pbImageFrame.Image = bitmap;
            }
            finally {
                g.Dispose();
            }
        }
Ejemplo n.º 2
0
        private void DrawCapturedImage(UFScanner Scanner)
        {
            Graphics  g    = pbImageFrame.CreateGraphics();
            Rectangle rect = new Rectangle(0, 0, pbImageFrame.Width, pbImageFrame.Height);

            try
            {
                Scanner.DrawCaptureImageBuffer(g, rect, true);
                Bitmap bitmap;
                int    Resolution;
                Scanner.GetCaptureImageBuffer(out bitmap, out Resolution);
                pbImageFrame.Image = bitmap;
            }
            finally
            {
                g.Dispose();
            }
        }