API Docs for:
Show:

ImageRenderer Class

Represent the Image Renderer. It's used to calculate the Image ink rendering in HTML5 canvas

Constructor

ImageRenderer

(
  • context
)

Parameters:

  • context Object

Methods

_drawCharacter

(
  • character
  • context
  • parameters
)
private

Draw character component

Parameters:

_drawRectangle

(
  • rectangle
  • context
  • parameters
)
private

Draw a rectangle on context

Parameters:

_drawStroke

(
  • stroke
  • context
  • parameters
)
private

Draw stroke component

Parameters:

drawComponent

(
  • component
)

Draw component

Parameters:

drawComponents

(
  • components
)

Draw components

Parameters:

drawRecognitionResult

(
  • components
  • recognitionResult
)

Draw recognition result on HTML5 canvas.

Parameters:

getShowBoundingBoxes

() Boolean

This property is use to show or not show the bounding box

Returns:

Boolean:

setShowBoundingBoxes

(
  • showBoundingBoxes
)

Set the show state of bounding box

Parameters:

  • showBoundingBoxes Boolean