function Leadtools.Annotations.Rendering.AnnHtml5RenderingEngine()
AnnHtml5RenderingEngine is the rendering engine implementation for the HTML 5 platform. This class derives from Leadtools.Annotations.Core.AnnRenderingEngine and implements the required methods to render annotation objects to an HTML 5 canvas.
The HTML 5 image viewer automation control can create an instance of the AnnHtml5RenderingEngine and uses it to create an automated annotation user interface tied with the LEADTOOLS HTML 5 Leadtools.Controls.ImageViewer control.
In addition to the above, this class contains the following members:
Member | Description |
---|---|
Context |
This is the destination HTML 5 canvas context 2d object to use when rendering and the annotation objects. |
SetFont |
Represents a helper method to set an Leadtools.Annotations.Core.AnnFont in a HTML 5 canvas context |
MeasureTextHeight |
Represents a helper method to measure the text height of an Leadtools.Annotations.Core.AnnFont in a HTML 5 canvas context |
SetFill |
Represents a helper method to set an Leadtools.Annotations.Core.AnnBrush in a HTML 5 canvas context |
SetStroke |
Represents a helper method to set an Leadtools.Annotations.Core.AnnStroke in a HTML 5 canvas context |
DrawCurve |
Represents a helper method to draw a curve in a HTML 5 canvas context |
DrawClosedCurve |
Represents a helper method to draw a closed curve in a HTML 5 canvas context |
DrawEllipse |
Represents a helper method to draw an ellipse in a HTML 5 canvas context |
DrawPicture |
Represents a helper method to draw an Leadtools.Annotations.Core.AnnPicture in a HTML 5 canvas context |