Enum pdfium_render::bitmap::PdfBitmapRotation
source · pub enum PdfBitmapRotation {
None,
Degrees90,
Degrees180,
Degrees270,
}Expand description
A rotation transformation that should be applied to a PdfPage when it is rendered
into a PdfBitmap.
Variants§
Implementations§
source§impl PdfBitmapRotation
impl PdfBitmapRotation
pub const fn as_degrees(&self) -> f32
pub const DEGREES_90_AS_RADIANS: f32 = 1.57079637f32
pub const DEGREES_180_AS_RADIANS: f32 = 3.14159274f32
pub const DEGREES_270_AS_RADIANS: f32 = 4.71238899f32
pub const fn as_radians(&self) -> f32
pub const fn as_radians_cos(&self) -> f32
pub const fn as_radians_sin(&self) -> f32
Trait Implementations§
source§impl Clone for PdfBitmapRotation
impl Clone for PdfBitmapRotation
source§fn clone(&self) -> PdfBitmapRotation
fn clone(&self) -> PdfBitmapRotation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PdfBitmapRotation
impl Debug for PdfBitmapRotation
source§impl PartialEq<PdfBitmapRotation> for PdfBitmapRotation
impl PartialEq<PdfBitmapRotation> for PdfBitmapRotation
source§fn eq(&self, other: &PdfBitmapRotation) -> bool
fn eq(&self, other: &PdfBitmapRotation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.