Krumelz Posted September 9, 2011 Author Share Posted September 9, 2011 Hello.I'm trying to get the Engine_BltToDC command to work.I want to blt my 32x32 picture in my 32x32 picbox.But as i hit the button that should start the blting nothing happens.I put a breakpoint at the engine_bltfast command in that sub, to see if its evenbeing called. And it is.I hope you guys can help me, heres my code.``` Dim srect As RECT, drect As RECT Frmmaingame.pictest.Cls With drect .Top = 0 .Bottom = Frmmaingame.pictest.height .Left = 0 .Right = Frmmaingame.pictest.width End With With srect .Top = 0 .Bottom = Frmmaingame.pictest.height .Left = 0 .Right = Frmmaingame.pictest.width End With Engine_BltToDC DDS_test, srect, drect, Frmmaingame.pictest, False```hope you can help me.-Krumelz Link to comment Share on other sites More sharing options...
PD Posted September 9, 2011 Share Posted September 9, 2011 Hmm….set the picturebox's autoredraw property to true and then try. Link to comment Share on other sites More sharing options...
Krumelz Posted September 9, 2011 Author Share Posted September 9, 2011 thanks for the fast reply.And it worked o.ohave been messing around for 2 hours now,wouldnt have guessed that its that easy xDthanks alot Link to comment Share on other sites More sharing options...
PD Posted September 9, 2011 Share Posted September 9, 2011 @Krumelz:> thanks for the fast reply.> And it worked o.o> have been messing around for 2 hours now,> wouldnt have guessed that its that easy xD> > thanks alotNo problem ;D Link to comment Share on other sites More sharing options...
SeeingBlue Posted September 9, 2011 Share Posted September 9, 2011 So what is this exactly? You added a 32x32 pic to display a single 32x23 image? Because I could probably use this. I am looking to use icons on on top of the picScreen. Link to comment Share on other sites More sharing options...
PD Posted September 9, 2011 Share Posted September 9, 2011 @SeeingBlue:> So what is this exactly? You added a 32x32 pic to display a single 32x23 image? Because I could probably use this. I am looking to use icons on on top of the picScreen.This was Krumelz asking a question but yes the code in the first post can be used to display a single 32x32 image in a picturebox. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now