(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-14-24 05:45 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - And of course the BitBlt() question New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 12-24-05 02:58 AM Link | Quote
Ok, I forgot most about bitbltting. Can someone point me to a tutorial that's explained simple. Or give an example on how to bitblt? Thanks!
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6294 days
Last view: 6294 days
Posted on 12-24-05 09:46 AM Link | Quote
What language? Best I can give you on short notice is an MSDN excerpt.
dcahrakos

490


 





Since: 11-17-05

Last post: 6511 days
Last view: 6511 days
Posted on 12-24-05 10:21 AM Link | Quote
if its VB, then here
http://www.vbexplorer.com/VBExplorer/library/bitbltprimer.asp

if its C/C++
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_0fzo.asp
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 12-24-05 01:47 PM Link | Quote
Language would be C/C++. I've been using MSDN but I still don't qutie get all the hDC stuff and how it applies to a hwnd and stuff
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6294 days
Last view: 6294 days
Posted on 12-28-05 09:41 AM Link | Quote
Okay...
hWnd literally means "handle to a window". Window can be a form (to use the less ambigious VB name), a control, your desktop...
hDC literally means "handle to a device context", alternatively I'd call em "drawing canvases".

Each window has a canvas. These are seperate entities. Each window class also knows how to draw itself, hence the whole "subclass a ComboBox to make it draw in the latest Office fashion" thing.

BitBlt requires two canvases: the source and the destination. Creating a window returns the new window's hWnd. You can then call GetWindowDC(hWnd) to retrieve the matching canvas handle, which can then be used by your favorite graphics functions, including but not limited to BitBlt.

Need more info?
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 12-30-05 01:51 PM Link | Quote
I found my problem, GetLastError(); is one good function turns out my code was working but my location to the picture was wrong. Slap me.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - And of course the BitBlt() question |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 368.51 kB (max 441.21 kB)