comparison Framework/Radiography/RadiographyAlphaLayer.cpp @ 1230:355dba5352d7

TestRenderer: Add a blank line on top of the text to improve bilinera filtering of the topmost line
author Alain Mazy <alain@mazy.be>
date Mon, 09 Dec 2019 16:37:39 +0100
parents ab958fd99b07
children e257b91fae2c
comparison
equal deleted inserted replaced
1221:e2435a524029 1230:355dba5352d7
89 buffer.GetHeight())) 89 buffer.GetHeight()))
90 { 90 {
91 return; // layer is outside the buffer 91 return; // layer is outside the buffer
92 } 92 }
93 93
94 printf("rendering alpha: %d \n", y1);
94 t.Apply(tmp, cropped, interpolation, true /* clear */); 95 t.Apply(tmp, cropped, interpolation, true /* clear */);
95 96
96 float value = foreground_; 97 float value = foreground_;
97 98
98 if (!applyWindowing) // if applying the windowing, it means we are ie rendering the image for a realtime visualization -> the foreground_ value is the value we want to see on the screen -> don't change it 99 if (!applyWindowing) // if applying the windowing, it means we are ie rendering the image for a realtime visualization -> the foreground_ value is the value we want to see on the screen -> don't change it