Struct pdfium_render::page::PdfPoints
source · pub struct PdfPoints {
pub value: f32,
}Expand description
The internal coordinate system inside a PdfDocument is measured in Points, a device-independent unit equal to 1/72 inches, roughly 0.358 mm. Points are converted to pixels when a PdfPage is rendered to a PdfBitmap.
Fields§
§value: f32Implementations§
source§impl PdfPoints
impl PdfPoints
sourcepub const fn zero() -> Self
pub const fn zero() -> Self
Creates a new PdfPoints object with the value 0.0.
Consider using the compile-time constant value PdfPoints::ZERO rather than calling this function directly.
sourcepub fn from_inches(inches: f32) -> Self
pub fn from_inches(inches: f32) -> Self
Creates a new PdfPoints object from the given measurement in inches.
sourcepub fn from_cm(cm: f32) -> Self
pub fn from_cm(cm: f32) -> Self
Creates a new PdfPoints object from the given measurement in centimeters.
Trait Implementations§
source§impl AddAssign<PdfPoints> for PdfPoints
impl AddAssign<PdfPoints> for PdfPoints
source§fn add_assign(&mut self, rhs: PdfPoints)
fn add_assign(&mut self, rhs: PdfPoints)
Performs the
+= operation. Read moresource§impl PartialEq<PdfPoints> for PdfPoints
impl PartialEq<PdfPoints> for PdfPoints
source§impl PartialOrd<PdfPoints> for PdfPoints
impl PartialOrd<PdfPoints> for PdfPoints
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl SubAssign<PdfPoints> for PdfPoints
impl SubAssign<PdfPoints> for PdfPoints
source§fn sub_assign(&mut self, rhs: PdfPoints)
fn sub_assign(&mut self, rhs: PdfPoints)
Performs the
-= operation. Read more