0

Hello

I've got a project running at school where I've got to create Pacman, everything is going great. But I want to load an image to use as ghost, background or pacman.
Currently it's a square which is pretty stupid.
But how can I convert the image from jpg, gif or so to somthing that I can load into a piece of memory and than copy to the video memory to draw it instantly.
My teacher said something about raw which contains all the values of the pixels, but I don't really get it. Is there some kind of program that will convert it for me?

Thanks,

Jasper

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by ov3rcl0ck
0

You can call APIs in your OS to display images, or you can link up to some C libraries, maybe just link to some OpenGL libraries.

0

Maybe I forgot to mention, the OS we've got to work on is a simulated 8086 machine in Dosbox. And we're not allowed to use other languages than assembler. So no if's, conditionals or c-code, just pure assembler.

0

I dought DOSbox has an API for displaying jpgs. Just convert all the image files to raw images, or just pixel paint some images.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.