Lines Matching refs:nheight

327     pub fn resize(&self, nwidth: u32, nheight: u32, filter: imageops::FilterType) -> DynamicImage {  in resize()
329 resize_dimensions(self.width(), self.height(), nwidth, nheight, false); in resize()
340 nheight: u32, in resize_exact()
343 dynamic_map!(*self, ref p => imageops::resize(p, nwidth, nheight, filter)) in resize_exact()
354 pub fn thumbnail(&self, nwidth: u32, nheight: u32) -> DynamicImage { in thumbnail()
356 resize_dimensions(self.width(), self.height(), nwidth, nheight, false); in thumbnail()
366 pub fn thumbnail_exact(&self, nwidth: u32, nheight: u32) -> DynamicImage { in thumbnail_exact()
367 dynamic_map!(*self, ref p => imageops::thumbnail(p, nwidth, nheight)) in thumbnail_exact()
379 nheight: u32, in resize_to_fill()
383 resize_dimensions(self.width(), self.height(), nwidth, nheight, true); in resize_to_fill()
387 let ratio = u64::from(iwidth) * u64::from(nheight); in resize_to_fill()
391 intermediate.crop(0, (iheight - nheight) / 2, nwidth, nheight) in resize_to_fill()
393 intermediate.crop((iwidth - nwidth) / 2, 0, nwidth, nheight) in resize_to_fill()
832 fn resize_dimensions(width: u32, height: u32, nwidth: u32, nheight: u32, fill: bool) -> (u32, u32) { in resize_dimensions()
833 let ratio = u64::from(width) * u64::from(nheight); in resize_dimensions()
844 u64::from(width) * u64::from(nheight) / u64::from(height) in resize_dimensions()
856 (intermediate as u32, nheight) in resize_dimensions()
860 (u64::from(nheight) * u64::from(::std::u32::MAX) / intermediate) as u32, in resize_dimensions()