Superfly1611 Posted February 18, 2004 Posted February 18, 2004 Hello i'm building a basic 2D Graphics game as a learning exercise for Graphics programing. I'm using VB.Net and GDI+ (until i feel confident to move onto DirectDraw) My Problem. I can user GDI to draw a single bitmap on the screen and get it to move around the screen. What i'm now looking to do is build a bitmap from a collection of bitmap files on my computer which between them will represent the current state of the level (level, current player state, etc) and then draw that new bitmap to the screen. How do i do this? Cheers Quote
Cynewulf Posted February 18, 2004 Posted February 18, 2004 Don't know if this will help but the way I used to do that in VB6 was to have the 'sprites' arrayed out on a single large bitmap. You can then blit from the appropriate point on your bitmap to your target destination. I'm sure you could apply the same thing to GDI+. Quote
Superfly1611 Posted February 18, 2004 Author Posted February 18, 2004 Sounds very much like what i need All i need to do now is work out how to do it :) Quote
Cynewulf Posted February 18, 2004 Posted February 18, 2004 Well you can still use BitBlt in .NET with the correct declaration. I believe using BitBlt is faster than the GDI+ DrawImageUnscaled. Just depends on whether you plan to do anything fancy I suppose :D Article here on how to do it... http://www.codeproject.com/vb/net/BitBlt.asp Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.