Controlling Cairo Features at Run Time
It is possible to specify, through a resource or an environment variable. if you want Cairo to be used. The following table summarizes the possible values and the effect of each:
Cairo Resources
Resource (.ini file)
Environment Variable
Value
UseCairo
ILVUSECAIRO
needed: Cairo is used only when it is needed, for example, when transparency or anti-aliasing is required. This is the default.
true: Cairo is used each time it is possible.
false: Cairo is never used.
The IlvDisplay class also has a method to indicate whether your application is correctly set to draw using Cairo:
Views GDI+ integration does not support line drawing using gradients. In order for Cairo to use identical rendering to GDI+, the Cairo feature in Views is set, by default, not to use gradients for line drawings. To force Views to allow Cairo line drawings using gradients, you can set the following resource or environment variable:
Cairo Resource for line drawing with gradients
Resource (.ini file)
Environment Variable
Value
UseGradientLines
ILVUSEGRADIENTLINES
true: Allow the use of gradients to draw lines.
Published date: 05/24/2022
Last modified date: 02/24/2022