load a bitmap from bmp file at run time
-
How load a bitmap from bmp file at run time
-
How load a bitmap from bmp file at run time
anilksingh wrote:
How load a bitmap from bmp file at run time
will LoadImage api help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Viorel. wrote:
::LoadBitmap and optional CBitmap::FromHandle can help.
you can't load Image from File using these function!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
How load a bitmap from bmp file at run time
-
How load a bitmap from bmp file at run time
(1) CImage m_Image; m_Image.Load(filename); ------------------------- (2) CBitmap m_Bit; m_Bit.Attach((HBITMAP)::LoadImage(AfxGetResourceHandle(), filename,IMAGE_BITMAP,0, 0,LR_DEFAULTCOLOR |LR_LOADFROMFILE));
_**
**_
whitesky
-
but LoadBitmap(bitmap resource);not file_**
**_
whitesky
-
Viorel. wrote:
::LoadBitmap and optional CBitmap::FromHandle can help.
you can't load Image from File using these function!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
but LoadBitmap(bitmap resource);not file_**
**_
whitesky
-
You are right. The image can be loaded from separate file using
::LoadImage
function withLR_LOADFROMFILE
flag, as was answered by sujtha.Viorel. wrote:
You are right. The image can be loaded from separate file using ::LoadImage function with LR_LOADFROMFILE flag, as was answered by sujtha.
Isn't i answered before Ms Sujtha ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
but LoadBitmap(bitmap resource);not file_**
**_
whitesky
WhiteSky wrote:
ut LoadBitmap(bitmap resource);not file
After long time i win the Leg Race:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Viorel. wrote:
You are right. The image can be loaded from separate file using ::LoadImage function with LR_LOADFROMFILE flag, as was answered by sujtha.
Isn't i answered before Ms Sujtha ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
WhiteSky wrote:
ut LoadBitmap(bitmap resource);not file
After long time i win the Leg Race:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
Hi ThatsAlok, how are you,you are absent here !? i think now you are very fast man not me and one thing where i write ut i write but :-D_**
**_
whitesky
-
Hi ThatsAlok, how are you,you are absent here !? i think now you are very fast man not me and one thing where i write ut i write but :-D_**
**_
whitesky
WhiteSky wrote:
i think now you are very fast man not me and one thing where i write ut i write but
;P
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You