Function Reference


_GDIPlus_EncodersGetSize

Get the total size of the structure that is returned by _GDIPlus_GetImageEncoders

#include <GDIPlus.au3>
_GDIPlus_EncodersGetSize ( )

Return Value

Success: the total size, in bytes.
Failure: -1 and sets the @error flag to non-zero, @extended may contain GPSTATUS error code ($GPID_ERR*).

Related

_GDIPlus_EncodersGetCount

See Also

Search GdipGetImageEncodersSize in MSDN Library.

Example

#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Global $g_idMemo

Example()

Func Example()
    ; Create GUI
    GUICreate("GDI+", 600, 400)
    $g_idMemo = GUICtrlCreateEdit("", 2, 2, 596, 396, $WS_VSCROLL)
    GUICtrlSetFont($g_idMemo, 9, 400, 0, "Courier New")
    GUISetState(@SW_SHOW)

    ; Initialize GDI+ library
    _GDIPlus_Startup()

    ; Show number of decoders/encoders
    MemoWrite("Decoder count : " & _GDIPlus_DecodersGetCount());
    MemoWrite("Decoder size .: " & _GDIPlus_DecodersGetSize());
    MemoWrite("Encoder count : " & _GDIPlus_EncodersGetCount());
    MemoWrite("Encoder size .: " & _GDIPlus_EncodersGetSize());

    ; Shut down GDI+ library
    _GDIPlus_Shutdown()

    ; Loop until the user exits.
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>Example

; Write a line to the memo control
Func MemoWrite($sMessage = '')
    GUICtrlSetData($g_idMemo, $sMessage & @CRLF, 1)
EndFunc   ;==>MemoWrite