Set to 1.0 to get nice smooth image
(&mut self, value: f32)
| 132 | |
| 133 | /// Set to 1.0 to get nice smooth image |
| 134 | pub fn set_dithering_level(&mut self, value: f32) -> Result<(), Error> { |
| 135 | if !(0. ..=1.).contains(&value) { |
| 136 | return Err(ValueOutOfRange); |
| 137 | } |
| 138 | |
| 139 | self.remapped = None; |
| 140 | self.dither_level = value; |
| 141 | Ok(()) |
| 142 | } |
| 143 | |
| 144 | /// The default is sRGB gamma (~1/2.2) |
| 145 | pub fn set_output_gamma(&mut self, value: f64) -> Result<(), Error> { |
no outgoing calls