Function Reference


_GDIPlus_ImageGetPropertyIdList

Gets a list of the property identifiers used in the meta data of an image object

#include <GDIPlus.au3>
_GDIPlus_ImageGetPropertyIdList ( $hImage )

Parameters

$hImage A pointer to an image object.

Return Value

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 ($GPIP_ERR* see GPIPlusConstants.au3).

See Also

Search GdipGetPropertyCount in MSDN Library.

Example

#include <Array.au3>
#include <GDIPlus.au3>

Example()

Func Example()
        _GDIPlus_Startup()

        ; X64 running support
        Local $sWow64 = ""
        If @AutoItX64 Then $sWow64 = "\Wow6432Node"

        Local $hImage = _GDIPlus_ImageLoadFromFile(RegRead("HKLM\SOFTWARE" & $sWow64 & "\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