Voilà, j'ai trouvé je croyais avoir trouvé comment solutionner cette erreur: l'appel se fait en Byref
Private Declare Function GdipCreatePathGradientFromPath Lib "gdiplus" (ByVal Path As Long, ByRef PathGradientBrush As Long) As Long
Ensuite il faut faire comme dans le projet
https://github.com/tannerhelland/pd2...rc/GDIPlus.bas
1 2 3
| Public Function GetGDIPlusPathBrushHandle(ByVal hGraphicsPath As Long) As Long
GdipCreatePathGradientFromPath hGraphicsPath, GetGDIPlusPathBrushHandle
End Function |
et on termine avec:
lPathGradientBrush = GetGDIPlusPathBrushHandle(lPath)
Reste maintenant à trouver les bons paramètres de GdipSetPathGradientSurroundColorsWithCount !
Partager