Example #1
0
        public FormVideo()
        {
            InitializeComponent();

            this.Text += " (Library version:" + DTKLPR4.GetLibraryVersion() + ")";

            ((DataGridViewImageColumn)dataGridView1.Columns["colPlateImage"]).ImageLayout = DataGridViewImageCellLayout.Zoom;
        }
Example #2
0
        public void OnFrameCaptured(VideoCapture videoCap, IntPtr pBuffer, int width, int height, int stride, PIXFMT pixelFormat, long timestamp, object customObject)
        {
            LPREngine engine = (LPREngine)customObject;

            engine.PutFrameImageBuffer(pBuffer, width, height, stride, pixelFormat, timestamp, 0);
            Bitmap bmp = DTKLPR4.CreateBitmapFromBuffer(pBuffer, width, height, stride, pixelFormat);

            SetFrame(bmp);
        }