Skip to content

Draw on top of images #540

Answered by johannes-wolf
kescobo asked this question in Q&A
Mar 29, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Wrap your image call in a content(...) call. CeTZ' content is a function to display native Typst content inside a CeTZ canvas.

E.g.

#cetz.canvas({
  import cetz.draw: *
  // Your drawing code goes here
  content((0,0), image("assets/decision-tree_1.png"))
  // Draw a circle and place its "west" anchor at the origin.
  circle((0,0), anchor: "west")
}) 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kescobo
Comment options

Answer selected by kescobo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question ❔ Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #539 on March 29, 2024 13:50.