pub struct RenderStyle {
pub colormap: Option<Colormap>,
pub value_range: Option<(f64, f64)>,
pub alpha: f32,
pub gamma: f32,
pub brightness: f32,
pub contrast: f32,
pub resampling: ResamplingMethod,
}Expand description
Style parameters for rendering
Fields§
§colormap: Option<Colormap>Colormap for single-band data
value_range: Option<(f64, f64)>Value range for normalization (min, max)
alpha: f32Alpha/transparency (0.0 = transparent, 1.0 = opaque)
gamma: f32Gamma correction (1.0 = no correction)
brightness: f32Brightness adjustment (-1.0 to 1.0)
contrast: f32Contrast adjustment (0.0 to 2.0, 1.0 = normal)
resampling: ResamplingMethodResampling method
Implementations§
Source§impl RenderStyle
impl RenderStyle
Sourcepub fn from_config(config: &StyleConfig) -> Self
pub fn from_config(config: &StyleConfig) -> Self
Create from StyleConfig
Trait Implementations§
Source§impl Clone for RenderStyle
impl Clone for RenderStyle
Source§fn clone(&self) -> RenderStyle
fn clone(&self) -> RenderStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderStyle
impl Debug for RenderStyle
Auto Trait Implementations§
impl Freeze for RenderStyle
impl RefUnwindSafe for RenderStyle
impl Send for RenderStyle
impl Sync for RenderStyle
impl Unpin for RenderStyle
impl UnsafeUnpin for RenderStyle
impl UnwindSafe for RenderStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more