I wanted to add a gradient-sample using GDIPLUS
but no gradient is painted.
the defined brush
// NewGradientBrush( nTop, nLeft, nWidth, nHeight, nType,;
// nTrans1, nRed1, nGreen1, nBlue1,;
// nTrans2, nRed2, nGreen2, nBlue2 ) CLASS Brush
// nType : 1_> horizontal 2-> vertical 3->diagonal derecha 4-> diagonal izq
LOCAL oBrush := Brush():NewGradientBrush( 0, 0, 200, 200, 1,; // just the area / size

255, 131, 193, 193,;
255, 255, 255, 255 )
tested as well the same size -> 250, 300, 200, 200 from the defined area.
solid brush is working !
oBrush := Brush():NewSolidBrush( 255, 255, 128, 0 ) // Orange
and the defined area

oGraphics := Graphics():New( oWnd:hDC )
oPath := Path():new()
oPath:AddRoundRect( 250, 300, 200, 200, 50 )
oGraphics:FillPath( oBrush, oPath)
oGraphics:Destroy()
another test

oGraphics := Graphics():New( oWnd:hDC )
oGraphics:DrawRect( , oBrush, 250, 50, 200, 200 )
oGraphics:Destroy()
any idea ? ( maybe a working example )
I found nothing about it in the forum or sample-directory
regards
Uwe
