Represents the annotation rendering engine implementation for the HTML 5 platform using a Canvas element.
function lt.Annotations.Rendering.AnnHtml5RenderingEngine
extends lt.Annotations.Core.AnnRenderingEngine
class lt.Annotations.Rendering.AnnHtml5RenderingEngine()
extends lt.Annotations.Core.AnnRenderingEngine
AnnHtml5RenderingEngine is the rendering engine implementation for the HTML 5 platform. This class derives from 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 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 AnnFont in a HTML 5 canvas context |
MeasureTextHeight | Represents a helper method to measure the text height of an AnnFont in a HTML 5 canvas context |
SetFill | Represents a helper method to set an AnnBrush in a HTML 5 canvas context |
SetFillOpacityAndBounds | Represents a helper method to set an AnnBrush with opacity and bounds in a HTML 5 canvas context |
SetStroke | Represents a helper method to set an 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 AnnPicture in a HTML 5 canvas context |