I'm trying to create an image (8-bit greyscale bitmap ?) from a dataset that I have acquired (it features x-y-coordinates and the actual pixel-data-information 0-255).
Now I would like to do that by using Apple's Cocoa/Foundation/etc. frameworks in Swift, but I just can't seem to grasp the idea of how it is even possible.
I really don't need to do any additional image-manipulation other than creating this simple greyscale-image.
So basic workflow would look like this:
- initialize image by size as 8-bit greyscale
- fill each pixel with the appropriate information from the array
- save the image into a file