Exemple #1
0
        public async ValueTask DisposeAsync()
        {
            if (IsDisposed)
                return;

            IsDisposed = true;

            await _dispatcher.QueueForCompletion(new SimpleMessagePumpAction(() =>
            {
                fpdfview.FPDFBitmapDestroy(_pdfBitmap);
            }));
        }
Exemple #2
0
        public async ValueTask DisposeAsync()
        {
            if (_isDisposed)
            {
                return;
            }

            _isDisposed = true;

            await _dispatcher.QueueForCompletion(new SimpleMessagePumpAction(() =>
            {
                fpdfview.FPDF_ClosePage(_pageInstance);
            }));
        }