Funktionreferenz


_GDIPlus_EffectGetParameters


Returns the parameters for the specified Effect object

#include <GDIPlus.au3>
_GDIPlus_EffectGetParameters ( $hEffect, $tEffectParameters )

Parameter

$hEffect Handle to an Effect object.
$tEffectParameters A DLL structure that receives the effect parameters.

Rückgabewert

Success: True.
Failure: False and sets the @error flag to non-zero, @extended may contain GPSTATUS error code ($GPIP_ERR* see GPIPlusConstants.au3).
@error: -1 - GDIPlus.dll does not support this function.
10 - Invalid parameters.

Bemerkungen

None.

Verwandte Funktionen

_GDIPlus_EffectCreate, _GDIPlus_EffectSetParameters

Siehe auch

Suche nach GdipGetEffectParameters in der MSDN Bibliothek.

Beispiel

#include <GDIPlus.au3>
#include <MsgBoxConstants.au3>

_Example()

Func _Example()
    If Not _GDIPlus_Startup() Or @extended < 6 Then
        MsgBox($MB_SYSTEMMODAL, "FEHLER", "GDIPlus.dll v1.1 ist nicht verfügbar")
        Return
    EndIf

    Local $hEffect = _GDIPlus_EffectCreate($GDIP_SharpenEffectGuid)
    Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_Sharpen)

    _GDIPlus_EffectGetParameters($hEffect, $tEffectParameters)
    ConsoleWrite("> Standardwert von Sharpen_Radius: " & $tEffectParameters.Radius & @CRLF)
    ConsoleWrite("> Standardwert von Sharpen_Amount: " & $tEffectParameters.Amount & @CRLF)

    _GDIPlus_EffectDispose($hEffect)
    _GDIPlus_Shutdown()

EndFunc   ;==>_Example