CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Jul 2003
    Location
    Germany
    Posts
    54

    displaying a JPG-Image on a picture control

    hello,

    i am using the CImage class to display a picture on a picture control. The problem that i have is that the function Draw(...) from CImage only uses a CDC Pointer but i need the ID of the picture control to show there the picture that i loaded before with CImage::ReadFile(...). Can someone show me how i can manage this problem ?

    thanx a lot


    the code that i want to use is such as follow:

    Code:
    CString str = "C:\\Image\\LED_r.jpg";
    
    CImage image;
    image.ReadFile(str, CIMAGE_FORMAT_JPEG);
    image.Draw(...
    Last edited by Mike2003; February 21st, 2004 at 05:51 PM.
    don't panic, TRY !!!

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