How to display graphics in 256 color in C

Reply

Join Date: Aug 2005
Posts: 36
Reputation: aripaka is an unknown quantity at this point 
Solved Threads: 0
aripaka's Avatar
aripaka aripaka is offline Offline
Light Poster

How to display graphics in 256 color in C

 
0
  #1
Aug 28th, 2005
Hi,

I have tried a VGA mode in C with graphics.h which displayed graphics in 256 color but 320X240 resolution. I want to know the way to display graphics in 256 color in 640X480 resolution.Can anybody please help me.?

Also I have tried to display a bmp file using graphics in C following the .bmp file format but the image is being distorted. Please provide exact procedure of reading a bmp file n dislaying it.

Thanks.
Mutyala Rao Aripaka
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 36
Reputation: Raven11 is an unknown quantity at this point 
Solved Threads: 1
Raven11 Raven11 is offline Offline
Light Poster

Re: How to display graphics in 256 color in C

 
0
  #2
Aug 28th, 2005
I would convert the bmp file to a header file. Include it into your project and use dx codes to view it.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 164
Reputation: Stoned_coder is an unknown quantity at this point 
Solved Threads: 5
Stoned_coder Stoned_coder is offline Offline
Junior Poster

Re: How to display graphics in 256 color in C

 
0
  #3
Aug 28th, 2005
Playing with VGA. You will probably benefit from this . It shows you how to use VGA properly.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,983
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 926
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: How to display graphics in 256 color in C

 
0
  #4
Aug 28th, 2005
Not sure, if this is what you want for displaying a BMP file:
http://www.daniweb.com/code/snippet174.html
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC