Struct webp::BitstreamFeatures [−][src]
pub struct BitstreamFeatures(_);
A wrapper around libwebp-sys::WebPBitstreamFeatures which allows to get information about the image.
Implementations
impl BitstreamFeatures
[src]
pub fn new(data: &[u8]) -> Option<Self>
[src]
pub fn width(&self) -> u32
[src]
Returns the width of the image as described by the bitstream in pixels.
pub fn height(&self) -> u32
[src]
Returns the height of the image as described by the bitstream in pixels.
pub fn has_alpha(&self) -> bool
[src]
Returns true if the image as described by the bitstream has an alpha channel.
pub fn has_animation(&self) -> bool
[src]
Returns true if the image as described by the bitstream is animated.
pub fn format(&self) -> Option<BitstreamFormat>
[src]
Returns the format of the image as described by image bitstream.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BitstreamFeatures
impl Send for BitstreamFeatures
impl Sync for BitstreamFeatures
impl Unpin for BitstreamFeatures
impl UnwindSafe for BitstreamFeatures
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,