Gets a list of the property identifiers used in the meta data of an image object
#include <GDIPlus.au3>
_GDIPlus_ImageGetPropertyIdList ( $hImage )
$hImage | A pointer to an image object. |
Success: | Array of property identifiers: [0][0] - Number of property identifiers [1][0] - Property identifier 1 [1][1] - Property ID Info 1 [2][0] - Property identifier 2 [2][1] - Property ID Info 2 [n][0] - Property identifier n [n][1] - Property ID Info n |
Failure: | Sets the @error flag to non-zero, @extended may contain GPSTATUS error code ($GPID_ERR*). |
Search GdipGetPropertyCount in MSDN Library.
#include <Array.au3>
#include <GDIPlus.au3>
Example()
Func Example()
_GDIPlus_Startup()
Local $hImage = _GDIPlus_ImageLoadFromFile(RegRead((@AutoItX64 = True ? "HKLM\SOFTWARE\Wow6432Node\AutoIt v3\AutoIt" : "HKLM\SOFTWARE\AutoIt v3\AutoIt"), "InstallDir") & "\Examples\GUI\Torus.png")
If @error Then
_GDIPlus_Shutdown()
MsgBox(16, "", "An error has occured - unable to load image!", 30)
Return False
EndIf
Local $aPropID = _GDIPlus_ImageGetPropertyIdList($hImage)
_ArrayDisplay($aPropID)
Local $aValues
For $i = 1 To $aPropID[0][0]
$aValues = _GDIPlus_ImageGetPropertyItem($hImage, $aPropID[$i][0])
_ArrayDisplay($aValues, $aPropID[$i][1])
Next
_GDIPlus_ImageDispose($hImage)
_GDIPlus_Shutdown()
EndFunc ;==>Example