pub struct PNGImage { /* private fields */ }
Implementations§
source§impl PNGImage
impl PNGImage
pub fn read<R: Read>(r: R) -> Result<Self>
pub fn flip(&self, flip_x: bool, flip_y: bool) -> PNGImage
sourcepub fn as_png<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_png<W: Write>(&self, writer: &mut W) -> Result<()>
Writes the image as a PNG to the given writer. This is useful for when you need to flip an existing image.
pub fn as_native<W: Write>( &self, writer: &mut W, image_type: ImageType ) -> Result<()>
pub fn as_ci8<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_ci4<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_i1<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_i4<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_i8<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_ia4<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_ia8<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_ia16<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_rgba16<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn as_rgba32<W: Write>(&self, writer: &mut W) -> Result<()>
Auto Trait Implementations§
impl Freeze for PNGImage
impl RefUnwindSafe for PNGImage
impl Send for PNGImage
impl Sync for PNGImage
impl Unpin for PNGImage
impl UnwindSafe for PNGImage
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