How to paint 2 gradients together on a Canvas?

前端 未结 4 867
情深已故
情深已故 2021-02-08 11:16

Please look at this sample gradient image I did with a Paint program:

\"enter

It c

4条回答
  •  梦如初夏
    2021-02-08 11:27

    iWidth: Integer;
    iWidth := Width div 2;
    GradientFillCanvas(Canvas, Col1, Col2, Rect(0, 0, iWidth, Height), gdHorizontal);
    GradientFillCanvas(Canvas, Col2, Col1, Rect(iWidth, 0, Width, Height),gdHorizontal);
    

提交回复
热议问题