WinForms PDF Viewer and Document API - DirectX Rendering (v18.1, Beta)

The DevExpress WinForms PDF Viewer and PDF Document API will soon ship with DirectX rendering support.

If you’ve followed our blogs over the last few months, you already know the performance benefits DirectX rendering brings to the table (see our blog posts regarding our WinForms Grid control for more information on DirectX). By moving from GDI/GDI+ to DirectX, we’ve radically improved the capabilities of our PDF Viewer and PDF Document API.

Text Quality

In previous versions of our PDF product line, text rendering quality was not as sharp as that available in products from Adobe (especially when scale was small because GDI uses integer coordinates for glyph positioning).

Thanks to DirectX, our upcoming release improves text rendering and text antialiasing. Frankly speaking, the improvement is remarkable: 

Graphics Quality

DirectX also allows us to support antialiased clipping. This feature was not available in previous versions because of GDI related limitations.

Text Rendering Modes

With our upcoming release, our PDF Viewer and PDF Document API will support all six text rendering modes. In addition to previously supported Fill, Fill then Stroke and Invisible modes, DirectX allows us to support Stroke and two Clip rendering modes. These latter modes are used to achieve advanced visual effects, as shown below.


Transparency and Blend Modes

GDI+ uses color values consisting of four components (Red, Green, Blue and Alpha) and provides alpha-blending calculations to mix colors. The PDF standard describes a complex transparency model, which not only supports this standard blend mode, but extends it to a wide set of advanced blend modes. Here are a few examples:

With the new DirectX engine, you will be able to use the power of this transparency model within your documents. 

How to enable it?

Note: Our new DirectX rendering engine is currently in beta. To use it, activate one of the following options:

  • WinForms PDF Viewer: enable the PdfViewer.RenderPageContentWithDirectX option;
  • PDF Document API: enable the PdfDocumentProcessor.RenderPageContentWithDirectX option.

Our DirectX rendering engine will be used by default when it officially ships in our v18.2 release cycle.

Compatibility and Limitations

DirectX support requires the Platform Update for Windows 7 or Windows 8.

Known Issues

The following are known issues – items you need to consider before using DirectX rendering: 

  • Document content is printed as an image.  This leads to a decrease in printing performance.
  • Very large images can be rendered slowly.

to say, we’re working to address these issues before the official release.

We’d love to get your feedback on this new capability. If you are an active Universal Subscriber, make certain to download our most recent beta today.

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.