Someone before the Internet, said may be high image digits with drawing tools I turn 100 various types of pictures, size are tried, but it is not, according to
Is urgent cry for you good people help one
CodePudding user response:
Lz talking about? The import? Import resources?
CodePudding user response:
I have some say according to the Internet when the pictures to the current path is also in the res folder but they are not make
CodePudding user response:
If you have a BMP image has been added to the project, using CBitmap: : LoadBitmap () can be loaded,
If it is in the external paths, using LoadImage loading pictures, or use CImage: : the Load () can also be,
CodePudding user response:
reference 1/f, worldy response: lz talking about? The import? Import resources? is to choose a good imported into the bitmap images and then subsequent operations CodePudding user response:
reference VisualEleven reply: 3/f if your BMP images have been added to the project, using CBitmap: : LoadBitmap () can be loaded, If it is in the external paths, using LoadImage loading pictures, or use CImage: : the Load () can also be, the BMP file to join into the project is not to put pictures in the bitmap? How do I use this LoadImage? CodePudding user response:
reference 5 floor qiangjiezang9943 reply: Quote: refer to the third floor VisualEleven response: If you have a BMP image has been added to the project, using CBitmap: : LoadBitmap () can be loaded, If it is in the external paths, using LoadImage loading pictures, or use CImage: : the Load () can also be, the BMP file to join into the project is not to put pictures in the bitmap? How do I use this LoadImage? Can be imported into resources, also can not import resources, directly from the external file to load the BMP images, For example: HBITMAP bitmap=(HBITMAP) LoadImage (AfxGetInstanceHandle (), TEXT (" F: \ \ 11. BMP "), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); ASSERT (NULL!=bitmap); CodePudding user response:
refer to 6th floor VisualEleven response: Quote: refer to the fifth floor qiangjiezang9943 reply: Quote: refer to the third floor VisualEleven response: If you have a BMP image has been added to the project, using CBitmap: : LoadBitmap () can be loaded, If it is in the external paths, using LoadImage loading pictures, or use CImage: : the Load () can also be, the BMP file to join into the project is not to put pictures in the bitmap? How do I use this LoadImage? Can be imported into resources, also can not import resources, directly from the external file to load the BMP images, For example: HBITMAP bitmap=(HBITMAP) LoadImage (AfxGetInstanceHandle (), TEXT (" F: \ \ 11. BMP "), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); ASSERT (NULL!=bitmap); would you give this code should be added to the MFC really don't know where I've just contact brother trouble CodePudding user response:
You first copy the image to the res folder, can not CodePudding user response:
A less import step, CodePudding user response:
refer to the eighth floor worldy response: you first copy the image to the res folder, not can is on the res folder CodePudding user response:
references 9 f kakabulusi response: one less import step, right-click dialog click on add resources bitmap import step is correct CodePudding user response:
As if is a wrong, use the screenshot tool to save it, CodePudding user response:
MFC with image control CodePudding user response:
To fill your previous import BMP file ID CodePudding user response:
In the resource folder right click; From import item existing import CodePudding user response:
Resource file import later with ID, or the full path for the image directly LoadImage can ah