pub struct JpegOptions {
pub quality: u32,
pub downsample: JpegDownsample,
pub alpha_option: JpegAlphaOption,
}Expand description
JPEG encoding options. JPEG encoding parameters.
Default: quality 90, chroma subsampling in both directions, alpha ignored.
Fields§
§quality: u32Encoding quality (0–100, clamped by the Skia converter).
downsample: JpegDownsampleChroma subsampling mode.
alpha_option: JpegAlphaOptionHow to handle the alpha channel (JPEG does not support alpha).
Trait Implementations§
Source§impl Clone for JpegOptions
impl Clone for JpegOptions
Source§fn clone(&self) -> JpegOptions
fn clone(&self) -> JpegOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JpegOptions
Source§impl Debug for JpegOptions
impl Debug for JpegOptions
Source§impl Default for JpegOptions
impl Default for JpegOptions
impl Eq for JpegOptions
Source§impl From<JpegOptions> for Options
impl From<JpegOptions> for Options
Source§fn from(value: JpegOptions) -> Self
fn from(value: JpegOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JpegOptions
impl PartialEq for JpegOptions
Source§fn eq(&self, other: &JpegOptions) -> bool
fn eq(&self, other: &JpegOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JpegOptions
Auto Trait Implementations§
impl Freeze for JpegOptions
impl RefUnwindSafe for JpegOptions
impl Send for JpegOptions
impl Sync for JpegOptions
impl Unpin for JpegOptions
impl UnsafeUnpin for JpegOptions
impl UnwindSafe for JpegOptions
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