insert Picture
-
Hi I want to insert the picture in the picture control in VC++ 6...... tell me how to do it
AbidBhat
Steps: 1) Add a .bmp image into resources, 2) Add a Picture Control onto the dialog template with the dialog editor, 3) Assign the resource ID of the image to the property of the Picture Control.
Maxwell Chen
-
Steps: 1) Add a .bmp image into resources, 2) Add a Picture Control onto the dialog template with the dialog editor, 3) Assign the resource ID of the image to the property of the Picture Control.
Maxwell Chen
-
Hi I want to insert the picture in the picture control in VC++ 6...... tell me how to do it
AbidBhat
If you want to insert bmp you can use of resource of program or for other foramts like jpg you can use of CImage class or GDI+.
-
If you want to insert bmp you can use of resource of program or for other foramts like jpg you can use of CImage class or GDI+.
Hamid. wrote:
for other foramts like jpg you can use of CImage class or GDI+.
can u plz elaborate the procedure for doing this a little more.... thanx in advance .... :-O
-
Hamid. wrote:
for other foramts like jpg you can use of CImage class or GDI+.
can u plz elaborate the procedure for doing this a little more.... thanx in advance .... :-O
Not problem for read bmp files you can use of LoadImage and its simple to use for read other formats like jpg you can use like this #incldue AtlImage.h CImage m; m.Load("c:\\1.jpg"); m.BitBlt(...); and in the last use of m.Destro();
-
Hamid. wrote:
for other foramts like jpg you can use of CImage class or GDI+.
can u plz elaborate the procedure for doing this a little more.... thanx in advance .... :-O
The simplest way is to create bitmap in the resource editor. So-called picture control is nothing but a static control that has (among others) SS_BITMAP style. Once you insert control and choose appropriate style, choose Bitmap type in a property box and assign ID of the bitmap image you want to display using the same property box. That is all you need to do unless you want to customize display and control how images are displayed.
JohnCz MS C++ MVP