Advertisement

Question about loading a bitmap into a windows app?????????????

Started by February 27, 2001 06:43 PM
13 comments, last by Merc22 23 years, 11 months ago
Whoa, calm down...I dont think Quantum was even remotely calling you stupid. If he was here to trash newbies, why would he even waste his time writing tutorials? But at least you figured out how the system worked.

--bah! who needs a signature?!
Here's a new dance everyone can do, do the Kirby:<(*.*<) <(^.^)> (>*.*)> <(^.^)> <(*.*<) (>^.^)>
I never said you were stupid; the idea that maybe you needed to read up on the language more merely came from the fact that I wasn''t understanding what you meant by "what to do with" a prototype. You yourself said that you weren''t very clear about it. If you don''t like my tutorials, that''s fine with me. I realize that not everyone is going to like what I wrote. But I did explain it as completely as I can, so there''s no need for accusing me of lack of effort or calling me incompetent.

-Ironblayde
 Aeon Software

Down with Tiberia!
"All your women are belong to me." - Nekrophidius
"Your superior intellect is no match for our puny weapons!"
Advertisement
im sorry
i merely became aggravated since i was tryin to explain my problem as best as i could
i have a very, very short fuse

i have one question though
cant u shorten ure tutorial on how to post a bitmap to like less then 80 lines of code

my friend did and i understood every part of it without a tutorial
well merc why dont you post what your friend showed you so we can see
HDC hDC,hImageIC;
HBITMAP hbm;
BITMAP bm;

suppose you have your own window created and having it''s handle as hWnd:

hbm=LoadImage(NULL,"test.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION,);
GetObject(hbm,&bm);
hImageDC=GetDC(hWnd);
hDC=CreateCompatibleDC(0);
SelectObject(hDC,hbm);
BitBlt(hImageDC,0,0,bm.bmWidth,bm.bmHeight,hDC,0,0,SRCCOPY);

ReleaseDC(hWnd,hImageDC);
DeleteDC(hDC);

just a draft example I can give, every API fuctions explaination could find at MSND, about GDI->Bitmap.

This topic is closed to new replies.

Advertisement