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

            IsDisposed = true;

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

            _isDisposed = true;

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