Any way to render an UImage on grayscale?

I checked the API, I guess SetBrushFromMaterial() could help but I’m not really good with materials.
Anyway, any clue is welcome.