The title pretty much explains my question. I would like to be able to read and write JPEG data on a per-pixel basis using C#.
I'm thinking something along the lines of CreateJPEG(x, y)
which would set up a blank JPEG image in memory, and would give me a JPEG object, and then something like SetPixel(x, y, Color)
and GetPixel(x, y)
the former of which would return a Color
or something similar. You could then call an Apply()
or Save()
method, for example, to save the image in a standard JPEG-readable format (preferrably with compression options, but that's not necessary).
And I'm assuming some C# library or namespace makes this all a very easy process, I'd just like to know the best way to go about it.