Struct FarbfeldEncoder
pub struct FarbfeldEncoder<W: Write> { /* private fields */ }
farbfeld encoder
Implementations
impl<W: Write> FarbfeldEncoder<W>
fn new(buffered_writer: W) -> FarbfeldEncoder<W>Create a new encoder that writes its output to
w. The writer should be buffered.fn encode(self, data: &[u8], width: u32, height: u32) -> ImageResult<()>Encodes the image
data(native endian) that has dimensionswidthandheight.Panics
Panics if
width * height * 8 != data.len().
Trait Implementations
impl<W: Write> ImageEncoder for FarbfeldEncoder<W>
fn write_image(self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>