User Tools

Site Tools


guides:tutorials:select-renderer

Table of Contents

Use renderer other than default

Documentation | Tutorials | Renderer other then default

The DK11 has the ability to replace a default rendering mechanism with an alternative one. This is implemented for Winforms, WPF and VCL

VCL

The default renderer is Direct3D. You can write code like this to change the rendering model to an alternative:

GIS.Renderer := TGIS_RendererVclGdiPlus.Create ;  // do not dispose this directly! viewer manage time-life of renderers

or even legacy and quite limited:

GIS.Renderer := TGIS_RendererVclGdi32.Create ;  // do not free this directly! viewer manage time-life of renderers

.NET

The default renderer is SharpDX. You can write code like this to change the rendering model to an alternative:

GIS.Renderer = new TGIS_RendererinForms() ;  // do not free this directly! viewer manage time-life of renderers
2021/05/17 21:45

Page Tools