WhOOt Posted June 4, 2009 Posted June 4, 2009 Hey guys I'm trying to watermark an image with another image. I was successful doing this, but then I thought again - can I make the overlay-image transparent? No, I could not. That's why I'm asking for your help! This is my current code- _GDIPlus_Startup () $hBitmap1 = _ScreenCapture_Capture ("") $hImage1 = _GDIPlus_BitmapCreateFromHBITMAP ($hBitmap1) $hImage2 = _GDIPlus_BitmapCreateFromfile (@scriptdir & "\files\dsrack.jpg") $hGraphic = _GDIPlus_ImageGetGraphicsContext ($hImage1) _GDIPlus_GraphicsDrawImage ($hGraphic, $hImage2, @desktopwidth-310, @desktopheight-120) _GDIPlus_ImageSaveToFile ($hImage1, @scriptdir & "\" & $cmdline[1]) Can anyone crack this nut for me? Thanks in advance WhOOt
monoceres Posted June 4, 2009 Posted June 4, 2009 Tada!http://www.autoitscript.com/forum/index.ph...c=81686&hl= Broken link? PM me and I'll send you the file!
WhOOt Posted June 5, 2009 Author Posted June 5, 2009 Tada!http://www.autoitscript.com/forum/index.ph...c=81686&hl= Thanks, but as far as I can see it doesn't allow another an image on top of another image to be transparent?
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