S
Spafford
Guest
Hi everyone,
I am trying to create an image from an array of data.
For example, I have an array of 1024*1024 floats and I want to generate an image that takes the greyscale value for each pixel from that position in the array. So effectively I am looking for a GMS2 version of the python pyplot imshow https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.imshow.html .
I would also like to do this dynamically, so that I can change the contrast if I were to zoom in on a smaller area of the image. This would be like setting the greyscale so the lightest and darkest areas of the image are white and black, regardless of their actual value.
Any help is appreciated!
I am trying to create an image from an array of data.
For example, I have an array of 1024*1024 floats and I want to generate an image that takes the greyscale value for each pixel from that position in the array. So effectively I am looking for a GMS2 version of the python pyplot imshow https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.imshow.html .
I would also like to do this dynamically, so that I can change the contrast if I were to zoom in on a smaller area of the image. This would be like setting the greyscale so the lightest and darkest areas of the image are white and black, regardless of their actual value.
Any help is appreciated!