|
-
Sep 22nd, 2000, 10:46 PM
#1
Thread Starter
Lively Member
Ok. I have my directX surfaces, I can write my text and draw my circles and so on, but heres what I need to know: HOW DO I LOAD 10000+ BITMAPS INTO DIRECTDRAW, AND BLIT ONE ON COMMAND? I need to simply be able to load LOTS of bitmaps, regardless of size (though they can be arranged in groups of same-size bitmaps, and are all average 50x50x16), and then be able to just blit any one to a directdraw surface whenever I want.
ANOTHER THING I NEED IS PIXEL GETTING AND SETTING! How can I go through the pixels in my surface and if some of them are a certain color replace them?
So there you go. I've looked, but NOWHERE do they go beyond simple making a surface. And no, I don't have a good enough connection to d/l the sdk. So there. THANK YOU IF YOU CAN FIND THAT!
-
Oct 3rd, 2000, 12:08 AM
#2
Addicted Member
you may want to post this in the Games / Graphics programming area.
The experts on this topic are more likely to look there
Regards
Matt Brown
Hamilton, NZ
VB6 C++ in Visual Studio 6sp4
VB.net Beta 1
-
Oct 3rd, 2000, 09:12 AM
#3
-
Oct 3rd, 2000, 09:37 AM
#4
I haven't used DirectX for quite a while, but I think I remember.
To set a pixel's color:
Code:
ddsMySurface.Lock
For Y = 1 To MaxY
For X = 1 To MaxX
lngCurColor = ddsMySurface.GetLockedPixel(X, Y)
If lngCurColor = TheColorYouWantToReplace Then
ddsMySurface.SetLockedPixel X, Y, TheColorYouWantToReplaceWith
End If
Next X
Next Y
ddsMySurface.Unlock
[Edited by Sc0rp on 10-03-2000 at 11:33 AM]
-
Oct 4th, 2000, 06:46 AM
#5
-
Oct 8th, 2000, 11:59 PM
#6
Thread Starter
Lively Member
CRAP I can't beleive I forgot to post in games/graphics prog!
Oh and THANK YOU FOR THE PIXELSETTING!
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
|