Struct waveform::direct::DirectWaveformRenderer
[−]
[src]
pub struct DirectWaveformRenderer { pub sample_rate: f64, pub config: WaveformConfig, }
Deprecated
Fields
sample_rate: f64
Deprecated
config: WaveformConfig
Deprecated
Methods
impl DirectWaveformRenderer
[src]
fn render_vec<T: Sample>(
&self,
samples: &[T],
shape: (usize, usize)
) -> Option<Vec<u8>>
[src]
&self,
samples: &[T],
shape: (usize, usize)
) -> Option<Vec<u8>>
Deprecated
Generates an image as a Vec<u8>
directly from the given samples.
Arguments
samples
- TheSample
s that will be used to render the image.shape
- The(width, height)
of the resulting image.
Trait Implementations
impl Copy for DirectWaveformRenderer
[src]
impl Clone for DirectWaveformRenderer
[src]
fn clone(&self) -> DirectWaveformRenderer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more