Hi Ankush!!!

I hope that This will helkp you...

A BMP is made out of a header part and the pixels. The
header contains basically 2 records with info about
width, height etc. 
These are the header record layouts: 
typedef struct { 
   unsigned short type; 
   unsigned long size; 
   unsigned short reserved1; 
   unsigned short reserved2; 
   unsigned long offsetbits; 
} BITMAPFILEHEADER; 
typedef struct { 
   unsigned long size; 
   unsigned long width; 
   unsigned long height; 
   unsigned short planes; 
   unsigned short bitcount; 
   unsigned long compression; 
   unsigned long sizeimage; 
   long xpelspermeter; 
   long ypelspermeter; 
   unsigned long colorsused; 
   unsigned long colorsimportant; 
} BITMAPINFOHEADER; 
After these headers the pixels are written: 
typedef struct { 
   unsigned char blue; 
   unsigned char green; 
   unsigned char red; 
} SINGLE_PIXEL; 
You should open the bmp in binary and the rest is up
to you (invert colors, darken/lighten colors etc).


Regards,
Ashwin Mittal.



--- ankushj10 <[EMAIL PROTECTED]> wrote:

> 
> 
> hi group,
> please help me display an image (jpg/bmp file) in
> turboC.
> ankush.
> 
> 
> 
> 
> 
> 
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe : [EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=3627
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/Programmers-Town/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to