![]() |
gimp export to c source file.
1 Attachment(s)
hi, i have an image that looke like the attached:
in gimp i exported it to a c source file and it looks like this: Code:
[schneidz@hyper gimp-c]$ cat schneidz.cthanks, |
it's a C struct with metadata and the actual image
it is not a program, just something to use in a program anyway, didn't know gimp exported to C struct a similar format is netpbm, it might help you understand |
thanks, any kool hello-world type of hax i can play around with incorporating this file ?
|
Quote:
cool would be like... displaying it at boot in a framebuffer ala plymouth style it's not hard, but not really basic (alignment, shared memory, hacking boot and such) simple, idk export it in ppm display it using SDL display it in SDL then draw something on it, or invert the colors or idk calculate avg brightness per color some basic filtering shouldn't be that hard either, but... thats a little in space-time wibbly woobly |
I'd use something like FLTK, Qt, or GTK to make a rudimentary Hello World frame/window under your X Window environment and then place that image into the window.
Doing it directly to the frame buffer is sometimes a problem. It depends on your hardware as well as support from whatever distribution you're running. |
Quote:
Try to compile with the -c flag, which tells gcc to only compile but not to link. Cheers |
| All times are GMT -5. The time now is 05:20 PM. |