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(...