#[repr(i32)]pub enum PdfiumBitmapFormat {
Unknown = 0,
Gray = 1,
Bgr = 2,
Bgrx = 3,
Bgra = 4,
BgraPremul = 5,
}
Expand description
The pixel format of the backing buffer of a PdfiumBitmap.
Variants§
Unknown = 0
Unknown bitmap format
Gray = 1
8-bit grayscale
Bgr = 2
24-bit BGR (blue-green-red)
Bgrx = 3
32-bit BGR with unused alpha
Bgra = 4
32-bit BGRA with alpha
BgraPremul = 5
32-bit BGRA with premultiplied alpha
Trait Implementations§
Source§impl Clone for PdfiumBitmapFormat
impl Clone for PdfiumBitmapFormat
Source§fn clone(&self) -> PdfiumBitmapFormat
fn clone(&self) -> PdfiumBitmapFormat
Returns a duplicate 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 PdfiumBitmapFormat
impl Debug for PdfiumBitmapFormat
Source§impl Default for PdfiumBitmapFormat
impl Default for PdfiumBitmapFormat
Source§fn default() -> PdfiumBitmapFormat
fn default() -> PdfiumBitmapFormat
Returns the “default value” for a type. Read more
Source§impl From<PdfiumBitmapFormat> for i32
impl From<PdfiumBitmapFormat> for i32
Source§fn from(value: PdfiumBitmapFormat) -> Self
fn from(value: PdfiumBitmapFormat) -> Self
Converts to this type from the input type.
Source§impl From<i32> for PdfiumBitmapFormat
impl From<i32> for PdfiumBitmapFormat
Source§impl PartialEq for PdfiumBitmapFormat
impl PartialEq for PdfiumBitmapFormat
impl Copy for PdfiumBitmapFormat
impl StructuralPartialEq for PdfiumBitmapFormat
Auto Trait Implementations§
impl Freeze for PdfiumBitmapFormat
impl RefUnwindSafe for PdfiumBitmapFormat
impl Send for PdfiumBitmapFormat
impl Sync for PdfiumBitmapFormat
impl Unpin for PdfiumBitmapFormat
impl UnwindSafe for PdfiumBitmapFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more