Function imagefmt::write_region
[−]
[src]
pub fn write_region<P>(
filepath: P,
w: usize,
h: usize,
src_fmt: ColFmt,
data: &[u8],
tgt_type: ColType,
rx: usize,
ry: usize,
rw: usize,
rh: usize
) -> Result<()> where
P: AsRef<Path>,
Writes a region of an image and converts it to requested color type.
The region is defined by the top-left coordinates rx
and ry
and the width and
height rw
and rh
.