Click to See Complete Forum and Search --> : how easy is it to add *.jpeg in your program


waheedrafiq
March 8th, 2003, 05:21 AM
I also wanted to do this but although i am not there , i still want to try this out

is it possible to code in C++ a small line or so that will display a *.jpeg or even *.bmp file in your program



and can you change the text colour or a output for example

int main()
{

cout<<"**************************"<<endl;
cout<<"** My new program **<<endl;
cout<<"**************************<<endl;

// i want the above to come out as a green text rather then white

// can i do this if so how

return 0;



}:confused: :confused:

Wfranc
March 8th, 2003, 08:50 AM
Umm..., I think the easiest way for you to display image files is to use Win_app in which you can use Loadbitmap, LoadImage,Bitbuilt...and TextOut,TextColor...commands to achieve what you want.
I have never tried programing using the int main() to load or draw bitmaps before, but if it is possible I guess it will not be easy at all:).


Best Regards,

waheedrafiq
March 9th, 2003, 09:01 AM
Thanks for that reply