Why does canvas.NewImageFromFile()
not load the image from the file system?
#4435
-
It just sets the file name: Lines 195 to 198 in dc34dad |
Beta Was this translation helpful? Give feedback.
Answered by
andydotxyz
Dec 4, 2023
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
srackham
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.