Jump to content

Save Imagedata from Clipboard to File


Recommended Posts

thank you, found this solution:

_ClipBoard_Open(0)
        $hBitmap = _ClipBoard_GetDataEx($CF_BITMAP)
        _GDIPlus_Startup()
        $hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap)
        _GDIPlus_ImageSaveToFile($hImage, fullpath/filename.jpg)
        _GDIPlus_BitmapDispose($hImage)
        _GDIPlus_Shutdown()
        _ClipBoard_Close()

works like i want :blink:

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...