Struct farbfeld::Encoder
[−]
[src]
pub struct Encoder<W: Write>(pub W);
A farbfeld encoder
Methods
impl<W: Write> Encoder<W>
[src]
fn encode(self, width: u32, height: u32, data: &[u8]) -> Result<()>
Encodes a image with width
, height
and data
into a farbfeld.
Failures
Returns a Error::NotEnoughData
if the provided data
slice is too short.