How to display images in Turbo c++ 4.5

How to display images in Turbo c++ 4.5
Last edited on
Take a graphic library. Find out how to properly link it with outdated compiler. Check documentation on how to load image. Do it.
It's not that simple. The Borland graphic image format is not documented and you'd have to reverse engineer it. The best thing to do is to make yourself a program which loads a simple file format (like BMP or TGA), use an image editor to convert all your images to that format, use your program to load the image and display it using putpixel(), use getimage() to get the image into Borland's magic format in memory, then compress and save the image to disk.

Now for your main program you only need to load and decompress the Borland image data into memory and you can use the putimage() function as usual.

Sorry I don't know any better way.
Topic archived. No new replies allowed.