|
-
Sep 23rd, 2002, 12:19 PM
#1
Thread Starter
Addicted Member
bmp in dos
hi
how can i open a .bmp file through c in dos mode directly on the screen.help me with the code please
-
Sep 23rd, 2002, 12:21 PM
#2
Monday Morning Lunatic
What compiler are you using? If it's DJGPP, you're best off looking at Allegro for the display. MSDN has the file format 
Oh, if it's a 16-bit compiler, I would suggest making the move to 32-bit, since 16-bit segmented (ugh) mode is going to die
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 23rd, 2002, 12:23 PM
#3
Frenzied Member
The short answer is: you can't.
The GDI graphics engine must be available to translate the BMP into screen pixel values. A Console window (DOS mode) does not provide access to GDI.
What are you trying to do? Open a BMP on an old 386 DOS machine?
Plus, Parskie is right - you need windowing support.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|