Getting bytes from a loaded image? #5858
Unanswered
NotQuiteApex
asked this question in
Q&A
Replies: 1 comment
-
Technically, I think it should be possible to extract the image to some decoded pixels like this, but it's not really optimal :
I think something like this is more optimal if you want to reuse the image :
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently load a bunch of BMP images with
eframe::egui::include_image!()
, but I was curious if there was a way to access those images' file data? Presumably it already has the bytes in memory somewhere, is there an easy way to access it?Beta Was this translation helpful? Give feedback.
All reactions