Jump to content

_gdiplus watermark

Recommended Posts

Hey guys :D

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! :D

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


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

  • Recently Browsing   0 members

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