You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the include_bytes!(...) macro but as far as I can see there is no way to load a new image from bytes using raster. If that's right I would be more than happy to add it and submit a PR. Thoughts?
The text was updated successfully, but these errors were encountered:
The bytes field of Image is public (along with all the other fields), so you could manually construct it with very little trouble. Though, a convenience method would be nice, since bad things will happen if you fill in the wrong values for height and width.
If you do want to make a PR, I'll remove the obnoxious rustfmt enforcement I added a while back...
Hi,
I would like to use the
include_bytes!(...)
macro but as far as I can see there is no way to load a new image from bytes usingraster
. If that's right I would be more than happy to add it and submit a PR. Thoughts?The text was updated successfully, but these errors were encountered: