DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   Opening Image file? (http://www.daniweb.com/forums/thread41604.html)

shahnazurs Mar 22nd, 2006 7:58 am
Opening Image file?
 
Please help me.
Kindly tell me how to open image file in windows from C programming

Many Thanks,
Shahnaz

iamthwee Mar 22nd, 2006 8:01 am
Re: Opening Image file?
 
What do you mean?
When you execute the program it opens up microsoft paint and displays your picture or something?

shahnazurs Mar 23rd, 2006 12:17 am
Re: Opening Image file?
 
That is right, it has to open any picture file like *.bmp.

Narue Mar 23rd, 2006 10:53 am
Re: Opening Image file?
 
That's a non-trivial program that involves working with the different image file formats (wotsit.org is your friend) and drawing them accordingly using a non-standard graphics library. As such, your question is far too broad for us to help with. Be more specific.

WolfPack Mar 23rd, 2006 11:58 am
Re: Opening Image file?
 
Quote:

Originally Posted by shahnazurs
That is right, it has to open any picture file like *.bmp.

If this means "yes. it has to open the file in mspaint", a quick, easy, but dirty way is to use
int main()
{
        system("mspaint filename.bmp");// filename.bmp is the image file name
        return 0;
}
in windows.

shahnazurs Mar 24th, 2006 7:13 am
Re: Opening Image file?
 
Thanks a lot friends.


All times are GMT -4. The time now is 5:55 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC