CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2002
    Location
    Birmingham UK
    Posts
    83

    Unhappy how easy is it to add *.jpeg in your program

    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;



    }
    Waheed Rafiq

    www.waheedrafiq.com


    MCP x 2 , Network+.CNNA

  2. #2
    Join Date
    Mar 2002
    Location
    AhuhA
    Posts
    204

    Arrow

    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,

  3. #3
    Join Date
    Dec 2002
    Location
    Birmingham UK
    Posts
    83
    Thanks for that reply
    Waheed Rafiq

    www.waheedrafiq.com


    MCP x 2 , Network+.CNNA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured