Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

BltToDC


Krumelz
 Share

Recommended Posts

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 even
being 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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...