Returns the parameters for the specified Effect object
#include <GDIPlus.au3>
_GDIPlus_EffectGetParameters ( $hEffect, $tEffectParameters )
$hEffect | Handle to an Effect object. |
$tEffectParameters | A DLL structure that receives the effect parameters. |
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. |
_GDIPlus_EffectCreate, _GDIPlus_EffectSetParameters
Search GdipGetEffectParameters in MSDN Library.
#include <GDIPlus.au3>
#include <MsgBoxConstants.au3>
_Example()
Func _Example()
If Not _GDIPlus_Startup() Or @extended < 6 Then
MsgBox($MB_SYSTEMMODAL, "ERROR", "GDIPlus.dll v1.1 not available")
Return
EndIf
Local $hEffect = _GDIPlus_EffectCreate($GDIP_SharpenEffectGuid)
Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_Sharpen)
_GDIPlus_EffectGetParameters($hEffect, $tEffectParameters)
ConsoleWrite("> default value of Sharpen_Radius: " & $tEffectParameters.Radius & @CRLF)
ConsoleWrite("> default value of Sharpen_Amount: " & $tEffectParameters.Amount & @CRLF)
_GDIPlus_EffectDispose($hEffect)
_GDIPlus_Shutdown()
EndFunc ;==>_Example