// Displays the DIB bitmap for acquisition nCurrentAcquisition, page nCurDib
        private void DisplayTheDib()
        {
            int    dib    = TwainAPI.DTWAIN_GetAcquiredImage(AcquireArray, nCurrentAcquisition, nCurDib);
            IntPtr dibPtr = GlobalLock(dib);

            this.dibBox.Image = BitmapFromDIB(dibPtr);
            GlobalUnlock(dibPtr);
            EnablePageButtons();
        }