Struct HdrEncoder
pub struct HdrEncoder<W: Write> { /* private fields */ }
Radiance HDR encoder
Implementations
impl<W: Write> HdrEncoder<W>
fn new(w: W) -> HdrEncoder<W>Creates encoder
fn encode(self, rgb: &[Rgb<f32>], width: usize, height: usize) -> ImageResult<()>Encodes the image
rgbthat has dimensionswidthandheight
Trait Implementations
impl<W: Write> ImageEncoder for HdrEncoder<W>
fn write_image(self, unaligned_bytes: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>