user296191
user296191

Reputation: 405

UI Components and Canvas Context

Is it possible to draw HTML UI Components onto a Canvas (2D) context ?

I would like to render, buttons, listboxes, text input controls onto a 2D Canvas Context.

Upvotes: 1

Views: 153

Answers (1)

Loktar
Loktar

Reputation: 35309

This isn't possible using standard HTML elements. The canvas element is only used to render raster images. You can however emulate this behavior using canvas, but then you are required to keep track of everything such as the mouse position, states and events.

Upvotes: 2

Related Questions