# How to set gamma in Rhino 7

**URL:** <https://discourse.mcneel.com/t/how-to-set-gamma-in-rhino-7/113051>\
**Category:** Rhino Developer\
**Tags:** rhinocommon, rhino7\
**Created:** [November 24, 2020, 12:20pm UTC](https://discourse.mcneel.com/t/how-to-set-gamma-in-rhino-7/113051 "2020-11-24T12:20:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marton.parlagh](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/marton.parlagh/32/513795_2.png) [@marton.parlagh](https://discourse.mcneel.com/u/marton.parlagh)\
**Post date:** [November 24, 2020, 12:20pm UTC](https://discourse.mcneel.com/t/how-to-set-gamma-in-rhino-7/113051/1 "2020-11-24T12:20:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [November 24, 2020, 11:16pm UTC](https://discourse.mcneel.com/t/how-to-set-gamma-in-rhino-7/113051/2 "2020-11-24T23:16:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![marton.parlagh](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/marton.parlagh/32/513795_2.png) [@marton.parlagh](https://discourse.mcneel.com/u/marton.parlagh)\
**Post date:** [November 25, 2020, 9:53am UTC](https://discourse.mcneel.com/t/how-to-set-gamma-in-rhino-7/113051/3 "2020-11-25T09:53:24Z")

</div>

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…
