I have C source code for an embedded system containing data arrays for an 8-bit image in pixels in shades of gray. I am responsible for documenting the software, and I would like to convert this source code to a JPEG file (image).
Here is a sample code:
const unsigned char grayscale_image[] = { 0, 0, 0, 0, 0, 0, 0, 74, 106, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 146, 93, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Here are my questions: (yes, plural)
- Which application do you recommend for converting this source file to JPEG?
- Can GIMP or Paint import a CSV data file?
- If I am writing this custom application, what Java libraries exist for JPEG?
- What libraries exist in C # to accomplish this task?
I have the following resources at my disposal: MS Visio 2010, Gimp, Paint, Java, Eclipse, MS Visual Studio 2010 Professional, wxWidgets, wxFrameBuilder, Cygwin.
I can write my own application in C #, Java, C or C ++.
Thank you for your advice.