[−][src]Enum cv::imgcodecs::ImwriteFlags
Imwrite flags
Variants
ImwriteJpegQuality
For JPEG, it can be a quality from 0 to 100 (the higher is the better). Default value is 95.
ImwriteJpegProgressive
Enable JPEG features, 0 or 1, default is False.
ImwriteJpegOptimize
Enable JPEG features, 0 or 1, default is False.
ImwriteJpegRstInterval
JPEG restart interval, 0 - 65535, default is 0 - no restart.
ImwriteJpegLumaQuality
Separate luma quality level, 0 - 100, default is 0 - don't use.
ImwriteJpegChromaQuality
Separate chroma quality level, 0 - 100, default is 0 - don't use.
ImwritePngCompression
For PNG, it can be the compression level from 0 to 9. A higher value means a smaller size and longer compression time. Default value is 3. Also strategy is changed to IMWRITE_PNG_STRATEGY_DEFAULT (Z_DEFAULT_STRATEGY).
ImwritePngStrategy
One of cv::ImwritePNGFlags, default is IMWRITE_PNG_STRATEGY_DEFAULT.
ImwritePngBilevel
Binary level PNG, 0 or 1, default is 0.
ImwritePxmBinary
For PPM, PGM, or PBM, it can be a binary format flag, 0 or 1. Default value is 1.
ImwriteWebpQuality
For WEBP, it can be a quality from 1 to 100 (the higher is the better). By default (without any parameter) and for quality above 100 the lossless compression is used.
ImwritePamTupletype
For PAM, sets the TUPLETYPE field to the corresponding string value that is defined for the format
Trait Implementations
impl PartialEq<ImwriteFlags> for ImwriteFlags
[src]
fn eq(&self, other: &ImwriteFlags) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for ImwriteFlags
[src]
fn clone(&self) -> ImwriteFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ImwriteFlags
[src]
impl Debug for ImwriteFlags
[src]
Auto Trait Implementations
impl Send for ImwriteFlags
impl Sync for ImwriteFlags
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,