internal static bool LgLcdUpdateBitmapQvga(int device, byte[] pixels, LcdPriority priority, LcdUpdateMode updateMode)
        {
            Debug.Assert(pixels != null && pixels.Length == BmpQvgaWidth * BmpQvgaHeight * BmpQvgaBpp / 8);
            LgLcdBitmapQvga bitmap            = new LgLcdBitmapQvga(pixels);
            int             priorityAndUpdate = (int)priority | (int)updateMode;
            int             result            = IntPtr.Size == 8
                ? LgLcdUpdateBitmap64(device, bitmap, priorityAndUpdate)
                : LgLcdUpdateBitmap32(device, bitmap, priorityAndUpdate);

            if (result != ErrorSuccess)
            {
                if (updateMode == LcdUpdateMode.SyncCompleteWithinFrame && result == ErrorAccessDenied)
                {
                    return(false);
                }
                throw new Win32Exception(result);
            }
            return(true);
        }
 private static extern int LgLcdUpdateBitmap64(int device, LgLcdBitmapQvga bitmap, int priorityAndUpdate);