Jump to content

Recommended Posts

Posted

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?

  Reveal hidden contents

 

Posted (edited)

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
  Reveal hidden contents

 

  • 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
×
×
  • Create New...