Height of the target image.
Height of the target image.
Target image to render annotations on.
Target image to render annotations on.
Width of the target image.
Width of the target image.
Rasterizes the annotation.
annotation state to render.
OptionaltargetCanvas: HTMLCanvasElementoptional target canvas to render the annotation on.
Adds a new marker type to the list of available marker types.
Marker type to register.
Restores the annotation state.
Annotation state to restore.
OptionalheightWhen set and naturalSize is false sets the height of the rendered image.
Both width and height have to be set for this to take effect.
OptionalimageFor formats that support it, specifies rendering quality.
In the case of image/jpeg you can specify a value between 0 and 1 (lowest to highest quality).
Rendered image type (image/png, image/jpeg, etc.).
Array of markers to render.
When set to true, only the marker layer without the original image will be rendered.
Marker types available for rendering.
Whether the image should be rendered at the original (natural) target image size.
OptionalwidthWhen set and naturalSize is false sets the width of the rendered image.
Both width and height have to be set for this to take effect.
Renderer is used to rasterize annotations.
Example
To render the annotation as a static image you use
Renderer.Just create an instance of it and pass the annotation state to the
rasterize()method: