Hi! I just want to know, how can I open an image file using C in Console mode... Yes... I don't want it to open in MSPaint or anywhere like that. I want to open a 16-color bmp image with VGA Graphics Driver using C in console mode. Actually this is what I want to do exactly. I am new to Graphics using C, and ofcourse creating images using C is a tedious job if the images are complex. So I want to create image outside C using MSPaint, save it in 16 color format (or more if possible), and then open it using C in console mode and further write a program using it as Background!
Please help...
Kartik_shashank
0
Newbie Poster
Recommended Answers
Jump to PostWhich operating system and compiler are you using?
Jump to PostWell in the sense that your old compiler can't generate console programs, but instead it generates DOS programs.
On the plus side, being DOS, you can generate simple low-resolution graphics (which a true Win32 console cannot).
On the downside, you're limiting yourself to lots of DOS specific things, …
Jump to Post> On the plus side, being DOS, you can generate simple low-resolution graphics (which a true Win32 console cannot).
Actually, if you get the DC of the console window, you can draw on it like any other. Unfortunately, it is impossible to use a window proc on the console …
All 10 Replies
Salem
5,138
Posting Sage
Kartik_shashank
0
Newbie Poster
Salem
5,138
Posting Sage
Duoas
1,025
Postaholic
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Duoas
1,025
Postaholic
Featured Poster
Kartik_shashank
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Duoas
1,025
Postaholic
Featured Poster
gowthamsettu
-6
Newbie Poster
Ancient Dragon
commented:
And you didn't even bother to read this thread??
-6
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.