Width, Height, Scale, and toDataURL() Revisited
In Chapter 1, we briefly
explained that you can set the width and height of the
canvas, as well as the scale (style width
and height
) of the canvas display area, dynamically
in code. We also showed you an example of using the Canvas
object’s toDataURL()
method to export a “screenshot” of
the Canvas application. In this section, we will revisit those functions
as they relate to Text Arranger 3.0.
Get HTML5 Canvas, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.