pub(crate) struct ExtendedImage {
info: WebPExtendedInfo,
image: ExtendedImageData,
}
Fields§
§info: WebPExtendedInfo
§image: ExtendedImageData
Implementations§
source§impl ExtendedImage
impl ExtendedImage
pub(crate) fn dimensions(&self) -> (u32, u32)
pub(crate) fn has_animation(&self) -> bool
pub(crate) fn icc_profile(&self) -> Option<Vec<u8>>
pub(crate) fn color_type(&self) -> ColorType
pub(crate) fn into_frames<'a>(self) -> Frames<'a> ⓘ
pub(crate) fn read_extended_chunks<R: Read>( reader: &mut R, info: WebPExtendedInfo ) -> ImageResult<ExtendedImage>
fn read_anim_info<R: Read>(reader: &mut R) -> ImageResult<WebPAnimatedInfo>
fn draw_subimage( canvas: &mut RgbaImage, anim_image: &AnimatedFrame, background_color: Rgba<u8> ) -> Option<ImageResult<Frame>>
fn do_alpha_blending(buffer: [u8; 4], canvas: Rgba<u8>) -> Rgba<u8>
pub(crate) fn fill_buf(&self, buf: &mut [u8])
pub(crate) fn get_buf_size(&self) -> usize
pub(crate) fn set_background_color( &mut self, color: Rgba<u8> ) -> ImageResult<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ExtendedImage
impl Send for ExtendedImage
impl Sync for ExtendedImage
impl Unpin for ExtendedImage
impl UnwindSafe for ExtendedImage
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more