Jump to content

GDI: Drawing just part of an image


 Share

Recommended Posts

Hi guys, I hope you can help me with a code problem ;):

I use lod3n's SetBitmap-function (http://www.autoitscript.com/forum/index.php?showtopic=47651) to create a gui with transparency.

I have loaded two pictures through GDI:

$off = _GDIPlus_ImageLoadFromFile("off.png")
$over = _GDIPlus_ImageLoadFromFile("over.png")

Posted Image

Normally the $off-image is shown. Which is working. What I want to achieve is that when I move the mouse over a defined region (x,y,width,height), this region is copied from the $over-image and drawn on top of the $off-picture in the same region.

Posted Image

But I don't know how to copy a section from an image and put it ontop of the other image. Is it even possible ?

Thanks in advance :D.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...