Skip to content

Why does canvas.NewImageFromFile() not load the image from the file system? #4435

Answered by andydotxyz
srackham asked this question in Q&A
Discussion options

You must be logged in to vote

Setting up an image just makes sure that the the data is available for the renderer to read the data (like FromReader or FromResource just sets up a resource in memory).

It's not until later that the image is decoded and rendered.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by srackham
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