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

impl Debug for BitstreamFeatures[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.