|
-
Feb 25th, 2001, 08:52 AM
#1
I am currently using DirectX 7 for game programming,
I just have one little question, how do I put, for example, a bitmap on coordinates -30,-30
(the bitmap itself is 80x80), so I can see a piece of the bitmap on my screen...
All positive values seem to work, why can't the negative ones work aswell?
thx in advance...
-
Feb 28th, 2001, 12:04 PM
#2
Retired VBF Adm1nistrator
Well the co-ordinate system for systems starts with (0, 0) in the top left hand corner of the screen, not dead centre.
So if you wanted to take just a part of it, just blit only part of it to the destination hDc.
- jamie
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 28th, 2001, 12:22 PM
#3
Frenzied Member
Sounds like you're using DirectDraw, right?
You should be able to use the Blt() function to blit to those coordinates, so long as you have attached a clipper to the surface. Otherwise it will get messed up, because you can't blit a picture to just anywhere.
Harry.
"From one thing, know ten thousand things."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|