[MFC] How to use the Picture Control to show jpg image?
-
The jpeg image is bigger than the Picture Control, and the jpeg file is in the local disk. It is no problem to show jpeg image, I can use the CImage to load the jpeg image and then user Picture Control's SetBitmap() method to display this image. But how to zoom to display this jpeg?
-
The jpeg image is bigger than the Picture Control, and the jpeg file is in the local disk. It is no problem to show jpeg image, I can use the CImage to load the jpeg image and then user Picture Control's SetBitmap() method to display this image. But how to zoom to display this jpeg?
-
The jpeg image is bigger than the Picture Control, and the jpeg file is in the local disk. It is no problem to show jpeg image, I can use the CImage to load the jpeg image and then user Picture Control's SetBitmap() method to display this image. But how to zoom to display this jpeg?
If you only need the image to fit the window (without adding zoom in and zoom out capabilities), just set the image control attribute "Real Size Image" to FALSE.