Suppose you have generated an image using linear values for RGB channels. E.g. you linearly interpolated it when doing blending, etc.. When you're going to present this on the screen, should the values be transformed as $C_{\mathrm{linear}}\to C_{\mathrm{sRGB}}$ as given here or backwards as described here?
It would seem that the image should be encoded in sRGB, thus the forward transformation is necessary. But I've measured response of my monitor, and it appears that to have linearly changing brightness with input RGB, the color data have to be transformed as $C_{\mathrm{sRGB}}\to C_{\mathrm{linear}}$ as if my image were already in sRGB color space (the behavior is consistent with that described in another question).
So is it correct that to render and present an image one has to do the following:
- Draw in linear RGB to have correct blending
- Treating the data as if they were sRGB, convert to linear RGB
- Present on screen, so that monitor now converts this back
Then the result will be linear as expected. Or am I missing something?