Sign in to follow this  
Followers 0
Konrad

GDI: Drawing just part of an image

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



Hm. Guess I should've postet in the "Graphical User Interface (GUI) Help and Support" forum...could a mod please move the thread ?

Share this post


Link to post
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
Sign in to follow this  
Followers 0