CSC517 OffScreenCanvas Servo

From Expertiza_Wiki
Revision as of 02:53, 3 November 2018 by Psingh25 (talk | contribs)
Jump to navigation Jump to search

About Off Screen Canvas:

The HTML specification defines a <canvas> element that can use a 2d or 3d rendering context. A new specification was recently developed that defines a canvas that can be used without being associated with an in-page canvas element, allowing for more efficient rendering. To use the OffscreenCanvas API, we have used a RenderingContext that has been obtained from an OffscreenCanvas object to generate new frames. Once a new frame has finished rendering in this context, the transferToImageBitmap() method can be called to save the most recent rendered image. This method returns an ImageBitmap object, which can be used in a variety of Web APIs and also in a second canvas without creating a transfer copy.

Problem Statement:

The following tasks were accomplished in the project:

1) Creating the OffscreenCanvas and OffscreenCanvasRenderingContext2d interfaces with stub method implementations.

2) Implementing the OffscreenCanvas Constructor [1] that creates a new canvas.

3)