just_started
09-16-2003, 05:25 PM
hi
i understand this question is too basic, but...
last time i got this response:
"There are tho ways, a) use an existing library and b) write your own function, but you somehow have to get the image in the file into your memory, in the format you want it to have (for example RGB or RGBA).
I would recommend to either write a ppm/ascii-loader yourself (VERY easy) or use libjpg to load jpeg files (QUITE easy *g*)."
all right, so what is a ppm/ascii-loader and how do i write it. i also don't know how to load jp[eg files using libjpg.
could someone recommend some code samples for all this.
thanx
i understand this question is too basic, but...
last time i got this response:
"There are tho ways, a) use an existing library and b) write your own function, but you somehow have to get the image in the file into your memory, in the format you want it to have (for example RGB or RGBA).
I would recommend to either write a ppm/ascii-loader yourself (VERY easy) or use libjpg to load jpeg files (QUITE easy *g*)."
all right, so what is a ppm/ascii-loader and how do i write it. i also don't know how to load jp[eg files using libjpg.
could someone recommend some code samples for all this.
thanx