Skip to content

Questions about Canvas and custom component #372

Answered by dhardy
loloof64 asked this question in Q&A
Discussion options

You must be logged in to vote

ImageId is basically just a handle to a texture region (see DrawShared).
The existing Svg widget is just some code around resvg libraries to allocate and draw to a texture.

The current draw APIs are quite basic unfortunately. Your best bet might be to use multiple widgets (one for the SVG, another for other draw operations around that). Or to copy the Svg code into your own widget.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by loloof64
Comment options

You must be logged in to vote
6 replies
@dhardy
Comment options

@loloof64
Comment options

@loloof64
Comment options

@dhardy
Comment options

@loloof64
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants