How to set gamma in Rhino 7

Hello,

In Rhino 6 I used:
renderWindow.GetAdjust();
renderWindow.SetAdjust();
to change the gamma settings of the material preview

This is obsolete since Rhino7
Probably I should use Rhino.Render.LinearWorkflow (??) now?
But how can I use it?

Thanks,
Márton

Not sure how that works for material previews. Why do you need to change the gamma setting for material previews?

I think we need to ask @andy to figure out how that is supposed to work, though.

As I was thinking about it I realized it is probably better to handle the gamma correction before display.

So I use now a Adjust.gamma free solution…