#(I started rust last night) How can I store only brightness values of an Image

19 messages · Page 1 of 1 (latest)

lone plaza
#

I'll figure it out ig

quick raven
#

image::imageops::to_grayscale

lone plaza
#

Does that open the image?

#

or does that take in an array?

quick raven
#

takes a T implementing GenericImage

lone plaza
#

What's that?

quick raven
lone plaza
#

Rust sure loves the "::"'s

#

So I pass in the opened image into function? I don't want to store the array that has RBG at all preferably but that should not be an issue since Rust does that weird thing when variables are copied they get removed.

#

!close

#

/close

#

?close

#

how do I close this brehferrisForgor

quick raven
#

use the 3 dots

lone plaza
#

...close

#

breh

quick raven
#

no in the top right

lone plaza
#

I did but it still is open