BcJsCanvasService
Description
The BcJsCanvasService provides a JavaScript interop-based API for manipulating the HTML5 Canvas element, enabling advanced graphics operations.
Methods
Saves the canvas content to a file using the specified canvas ID and file name.
Saves the current state of the canvas using the specified canvas ID.
Restores the previously saved state of the canvas using the specified canvas ID.
Scales the canvas by the specified x and y factors.
Rotates the canvas by the specified angle in radians.
Translates (moves) the canvas by the specified x and y values.
Applies a transformation matrix to the canvas using the specified parameters.
Resets all transformations applied to the canvas.
Sets the transformation matrix for the canvas using the specified parameters.
Sets the fill style for the canvas drawing operations.
Sets the stroke style for the canvas drawing operations.
Sets the width of the lines drawn on the canvas.
Clears the specified rectangle on the canvas.
Fills the specified rectangle with the current fill style.
Draws the outline of the specified rectangle.