Struct image::codecs::jpeg::PixelDensity [−][src]
pub struct PixelDensity { pub density: (u16, u16), pub unit: PixelDensityUnit, }
Represents the pixel density of an image
For example, a 300 DPI image is represented by:
use image::jpeg::*; let hdpi = PixelDensity::dpi(300); assert_eq!(hdpi, PixelDensity {density: (300,300), unit: PixelDensityUnit::Inches})
Fields
density: (u16, u16)
A couple of values for (Xdensity, Ydensity)
unit: PixelDensityUnit
The unit in which the density is measured
Implementations
impl PixelDensity
[src]
impl PixelDensity
[src]Trait Implementations
impl Clone for PixelDensity
[src]
impl Clone for PixelDensity
[src]fn clone(&self) -> PixelDensity
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for PixelDensity
[src]
impl Default for PixelDensity
[src]impl PartialEq<PixelDensity> for PixelDensity
[src]
impl PartialEq<PixelDensity> for PixelDensity
[src]