Jump to content

GDIPlus: how to remove all image property items (Solved)


Recommended Posts

I had thought that _GDIPlus_ImageClone($hImage) removes all property items, but I now know that it copies property items.

What is the easiest way of copying an image that has property items to another image that does not have property items?

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Link to comment
Share on other sites

Here is the answer to my own question:

Local $nWidImg = _GDIPlus_ImageGetWidth($hImage)
    Local $nHtImg = _GDIPlus_ImageGetHeight($hImage)
    ; hImage2 has no property items
    Local $hImage2 = _GDIPlus_BitmapCloneArea($hImage,$nWidImg,$nHtImg,$nWidImg,$nHtImg)

 

Edited by c.haslam
Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Link to comment
Share on other sites

  • c.haslam changed the title to GDIPlus: how to remove all image property items (Solved)

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

×
×
  • Create New...