←Select platform

EndRenderOptimize Method

Summary

Clears the rendering optimization data.

Syntax

C#
VB
Java
Objective-C
C++
public void EndRenderOptimize()
Public Sub EndRenderOptimize()
- (BOOL)endRenderOptimize:(NSError **)error
public void endRenderOptimize()
public: 
void EndRenderOptimize(); 

Remarks

For more information, refer to SVG Rendering.

SvgDocument will create internal data structures to speed up rendering. This data can be cached and re-used by using SvgDocument.BeginRenderOptimize and SvgDocument.EndRenderOptimize.

If the SvgDocument will be rendered once, it is best to leave the optimization as is. However, if the document will be rendered many times (for example, it is being viewed in an Leadtools.Controls.ImageViewer control, then it is best to cache this data to enhance speed. This can easily be achieved by using BeginRenderOptimize before setting the document in the viewer.

BeginRenderOptimize can use extra system resources stored in the internal data. Use EndRenderOptimize to free this data manually at any time.

BeginRenderOptimize and EndRenderOptimize use an internal counter to track the state of the optimization. BeginRenderOptimize increments this counter and EndRenderOptimize decrements it: therefore, the optimization is only performed when needed and any number of BeginRenderOptimize and EndRenderOptimize can be chained together without affecting the document.

This internal data will be freed automatically when the document is disposed of, regardless of the value of the counter.

To determine whether the document has optimized rendering data, use SvgDocument.IsRenderOptimized.

Example

For an example, refer to Render.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Svg Assembly
Click or drag to resize