Hi all,
Could you tell me how to write simple graphics program in c, for example, how to take the format of bmp, pgm, csd file from image file?
how to convert from one format to other? If anybody knows a good book or web site, please tell me soon.
Graphics in C language
Started by
Guest_ravs2k6_*
, May 11 2006 05:40 PM
5 replies to this topic
#1
Guest_ravs2k6_*
Posted 11 May 2006 - 05:40 PM
Guest_ravs2k6_*
|
|
|
#2
Posted 12 May 2006 - 12:45 AM
you would have to read the binary picture file byte-for-byte and convert it into the image. Then you could rewrite it in other formats.
#3
Posted 12 May 2006 - 01:43 AM
hi lop can you explain it in brief
#4
Posted 24 May 2006 - 01:51 AM
If you wanted to do it yourself, you'd have to get file format specs for each format you wanted to support. Yuck.
I'd suggest looking for a library you can use. Assuming you're targeting Win32, I don't think there's much in the realm of graphics manipulation in the API. But I did find a couple of promising candidates:
PixelToaster
FreeImage (C++)
There's bound to be others available as well.
I'd suggest looking for a library you can use. Assuming you're targeting Win32, I don't think there's much in the realm of graphics manipulation in the API. But I did find a couple of promising candidates:
PixelToaster
FreeImage (C++)
There's bound to be others available as well.
#5
Posted 04 July 2006 - 11:29 AM
I knew that other programs were used in conjuction with C/C++ to create images, nobody could create images freehand just by using text (unless it's like, turtle graphics).
#6
Posted 07 October 2007 - 03:27 PM
If you want file specs, there's a great website for every file imaginable:
Wotsit.org
Just type in the file extension or the type of file, and you'll usually get results.
Wotsit.org
Just type in the file extension or the type of file, and you'll usually get results.


Sign In
Create Account

Back to top










