blob: e769598cb11831eb1b5669a5055018b5c209f2cb [file] [log] [blame]
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A Dynamic Image"><meta name="keywords" content="rust, rustlang, rust-lang, DynamicImage"><title>DynamicImage in image - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../image/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../image/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">DynamicImage</a></h2><div class="sidebar-elems"><section><h3><a href="#variants">Variants</a></h3><ul class="block"><li><a href="#variant.ImageBgr8">ImageBgr8</a></li><li><a href="#variant.ImageBgra8">ImageBgra8</a></li><li><a href="#variant.ImageLuma16">ImageLuma16</a></li><li><a href="#variant.ImageLuma8">ImageLuma8</a></li><li><a href="#variant.ImageLumaA16">ImageLumaA16</a></li><li><a href="#variant.ImageLumaA8">ImageLumaA8</a></li><li><a href="#variant.ImageRgb16">ImageRgb16</a></li><li><a href="#variant.ImageRgb8">ImageRgb8</a></li><li><a href="#variant.ImageRgba16">ImageRgba16</a></li><li><a href="#variant.ImageRgba8">ImageRgba8</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.adjust_contrast">adjust_contrast</a></li><li><a href="#method.as_bgr8">as_bgr8</a></li><li><a href="#method.as_bgra8">as_bgra8</a></li><li><a href="#method.as_bytes">as_bytes</a></li><li><a href="#method.as_flat_samples_u16">as_flat_samples_u16</a></li><li><a href="#method.as_flat_samples_u8">as_flat_samples_u8</a></li><li><a href="#method.as_luma16">as_luma16</a></li><li><a href="#method.as_luma8">as_luma8</a></li><li><a href="#method.as_luma_alpha16">as_luma_alpha16</a></li><li><a href="#method.as_luma_alpha8">as_luma_alpha8</a></li><li><a href="#method.as_mut_bgr8">as_mut_bgr8</a></li><li><a href="#method.as_mut_bgra8">as_mut_bgra8</a></li><li><a href="#method.as_mut_luma16">as_mut_luma16</a></li><li><a href="#method.as_mut_luma8">as_mut_luma8</a></li><li><a href="#method.as_mut_luma_alpha16">as_mut_luma_alpha16</a></li><li><a href="#method.as_mut_luma_alpha8">as_mut_luma_alpha8</a></li><li><a href="#method.as_mut_rgb16">as_mut_rgb16</a></li><li><a href="#method.as_mut_rgb8">as_mut_rgb8</a></li><li><a href="#method.as_mut_rgba16">as_mut_rgba16</a></li><li><a href="#method.as_mut_rgba8">as_mut_rgba8</a></li><li><a href="#method.as_rgb16">as_rgb16</a></li><li><a href="#method.as_rgb8">as_rgb8</a></li><li><a href="#method.as_rgba16">as_rgba16</a></li><li><a href="#method.as_rgba8">as_rgba8</a></li><li><a href="#method.blur">blur</a></li><li><a href="#method.brighten">brighten</a></li><li><a href="#method.color">color</a></li><li><a href="#method.crop">crop</a></li><li><a href="#method.crop_imm">crop_imm</a></li><li><a href="#method.filter3x3">filter3x3</a></li><li><a href="#method.fliph">fliph</a></li><li><a href="#method.flipv">flipv</a></li><li><a href="#method.from_decoder">from_decoder</a></li><li><a href="#method.grayscale">grayscale</a></li><li><a href="#method.huerotate">huerotate</a></li><li><a href="#method.into_bgr">into_bgr</a></li><li><a href="#method.into_bgr8">into_bgr8</a></li><li><a href="#method.into_bgra">into_bgra</a></li><li><a href="#method.into_bgra8">into_bgra8</a></li><li><a href="#method.into_bytes">into_bytes</a></li><li><a href="#method.into_luma">into_luma</a></li><li><a href="#method.into_luma16">into_luma16</a></li><li><a href="#method.into_luma8">into_luma8</a></li><li><a href="#method.into_luma_alpha">into_luma_alpha</a></li><li><a href="#method.into_luma_alpha16">into_luma_alpha16</a></li><li><a href="#method.into_luma_alpha8">into_luma_alpha8</a></li><li><a href="#method.into_rgb">into_rgb</a></li><li><a href="#method.into_rgb16">into_rgb16</a></li><li><a href="#method.into_rgb8">into_rgb8</a></li><li><a href="#method.into_rgba">into_rgba</a></li><li><a href="#method.into_rgba16">into_rgba16</a></li><li><a href="#method.into_rgba8">into_rgba8</a></li><li><a href="#method.invert">invert</a></li><li><a href="#method.new_bgr8">new_bgr8</a></li><li><a href="#method.new_bgra8">new_bgra8</a></li><li><a href="#method.new_luma16">new_luma16</a></li><li><a href="#method.new_luma8">new_luma8</a></li><li><a href="#method.new_luma_a16">new_luma_a16</a></li><li><a href="#method.new_luma_a8">new_luma_a8</a></li><li><a href="#method.new_rgb16">new_rgb16</a></li><li><a href="#method.new_rgb8">new_rgb8</a></li><li><a href="#method.new_rgba16">new_rgba16</a></li><li><a href="#method.new_rgba8">new_rgba8</a></li><li><a href="#method.resize">resize</a></li><li><a href="#method.resize_exact">resize_exact</a></li><li><a href="#method.resize_to_fill">resize_to_fill</a></li><li><a href="#method.rotate180">rotate180</a></li><li><a href="#method.rotate270">rotate270</a></li><li><a href="#method.rotate90">rotate90</a></li><li><a href="#method.save">save</a></li><li><a href="#method.save_with_format">save_with_format</a></li><li><a href="#method.thumbnail">thumbnail</a></li><li><a href="#method.thumbnail_exact">thumbnail_exact</a></li><li><a href="#method.to_bgr">to_bgr</a></li><li><a href="#method.to_bgr8">to_bgr8</a></li><li><a href="#method.to_bgra">to_bgra</a></li><li><a href="#method.to_bgra8">to_bgra8</a></li><li><a href="#method.to_bytes">to_bytes</a></li><li><a href="#method.to_luma">to_luma</a></li><li><a href="#method.to_luma16">to_luma16</a></li><li><a href="#method.to_luma8">to_luma8</a></li><li><a href="#method.to_luma_alpha">to_luma_alpha</a></li><li><a href="#method.to_luma_alpha16">to_luma_alpha16</a></li><li><a href="#method.to_luma_alpha8">to_luma_alpha8</a></li><li><a href="#method.to_rgb">to_rgb</a></li><li><a href="#method.to_rgb16">to_rgb16</a></li><li><a href="#method.to_rgb8">to_rgb8</a></li><li><a href="#method.to_rgba">to_rgba</a></li><li><a href="#method.to_rgba16">to_rgba16</a></li><li><a href="#method.to_rgba8">to_rgba8</a></li><li><a href="#method.unsharpen">unsharpen</a></li><li><a href="#method.write_to">write_to</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-DynamicImage">Clone</a></li><li><a href="#impl-Debug-for-DynamicImage">Debug</a></li><li><a href="#impl-Eq-for-DynamicImage">Eq</a></li><li><a href="#impl-GenericImage-for-DynamicImage">GenericImage</a></li><li><a href="#impl-GenericImageView-for-DynamicImage">GenericImageView</a></li><li><a href="#impl-Hash-for-DynamicImage">Hash</a></li><li><a href="#impl-PartialEq%3CDynamicImage%3E-for-DynamicImage">PartialEq&lt;DynamicImage&gt;</a></li><li><a href="#impl-StructuralEq-for-DynamicImage">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-DynamicImage">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-DynamicImage">RefUnwindSafe</a></li><li><a href="#impl-Send-for-DynamicImage">Send</a></li><li><a href="#impl-Sync-for-DynamicImage">Sync</a></li><li><a href="#impl-Unpin-for-DynamicImage">Unpin</a></li><li><a href="#impl-UnwindSafe-for-DynamicImage">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-DynamicImage">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-DynamicImage">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-DynamicImage">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-DynamicImage">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-DynamicImage">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-DynamicImage">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-DynamicImage">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-DynamicImage">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In image</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Enum <a href="index.html">image</a>::<wbr><a class="enum" href="#">DynamicImage</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/image/dynimage.rs.html#43-73">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust enum"><code>pub enum DynamicImage {
ImageLuma8(<a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a>),
ImageLumaA8(<a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>),
ImageRgb8(<a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a>),
ImageRgba8(<a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>),
ImageBgr8(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;),
ImageBgra8(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;),
ImageLuma16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Luma.html" title="struct image::Luma">Luma</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;),
ImageLumaA16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;),
ImageRgb16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;),
ImageRgba16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;),
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A Dynamic Image</p>
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.ImageLuma8" class="variant small-section-header"><a href="#variant.ImageLuma8" class="anchor field"></a><code>ImageLuma8(<a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a>)</code></h3><div class="docblock"><p>Each pixel in this image is 8-bit Luma</p>
</div><h3 id="variant.ImageLumaA8" class="variant small-section-header"><a href="#variant.ImageLumaA8" class="anchor field"></a><code>ImageLumaA8(<a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>)</code></h3><div class="docblock"><p>Each pixel in this image is 8-bit Luma with alpha</p>
</div><h3 id="variant.ImageRgb8" class="variant small-section-header"><a href="#variant.ImageRgb8" class="anchor field"></a><code>ImageRgb8(<a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a>)</code></h3><div class="docblock"><p>Each pixel in this image is 8-bit Rgb</p>
</div><h3 id="variant.ImageRgba8" class="variant small-section-header"><a href="#variant.ImageRgba8" class="anchor field"></a><code>ImageRgba8(<a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>)</code></h3><div class="docblock"><p>Each pixel in this image is 8-bit Rgb with alpha</p>
</div><h3 id="variant.ImageBgr8" class="variant small-section-header"><a href="#variant.ImageBgr8" class="anchor field"></a><code>ImageBgr8(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;)</code></h3><div class="docblock"><p>Each pixel in this image is 8-bit Bgr</p>
</div><h3 id="variant.ImageBgra8" class="variant small-section-header"><a href="#variant.ImageBgra8" class="anchor field"></a><code>ImageBgra8(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;)</code></h3><div class="docblock"><p>Each pixel in this image is 8-bit Bgr with alpha</p>
</div><h3 id="variant.ImageLuma16" class="variant small-section-header"><a href="#variant.ImageLuma16" class="anchor field"></a><code>ImageLuma16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Luma.html" title="struct image::Luma">Luma</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;)</code></h3><div class="docblock"><p>Each pixel in this image is 16-bit Luma</p>
</div><h3 id="variant.ImageLumaA16" class="variant small-section-header"><a href="#variant.ImageLumaA16" class="anchor field"></a><code>ImageLumaA16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;)</code></h3><div class="docblock"><p>Each pixel in this image is 16-bit Luma with alpha</p>
</div><h3 id="variant.ImageRgb16" class="variant small-section-header"><a href="#variant.ImageRgb16" class="anchor field"></a><code>ImageRgb16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;)</code></h3><div class="docblock"><p>Each pixel in this image is 16-bit Rgb</p>
</div><h3 id="variant.ImageRgba16" class="variant small-section-header"><a href="#variant.ImageRgba16" class="anchor field"></a><code>ImageRgba16(<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;)</code></h3><div class="docblock"><p>Each pixel in this image is 16-bit Rgb with alpha</p>
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#137-1037">source</a><a href="#impl-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_luma8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#139-141">source</a><h4 class="code-header">pub fn <a href="#method.new_luma8" class="fnname">new_luma8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of grey pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_luma_a8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#145-147">source</a><h4 class="code-header">pub fn <a href="#method.new_luma_a8" class="fnname">new_luma_a8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of grey
pixels with transparency.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_rgb8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#150-152">source</a><h4 class="code-header">pub fn <a href="#method.new_rgb8" class="fnname">new_rgb8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of RGB pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_rgba8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#155-157">source</a><h4 class="code-header">pub fn <a href="#method.new_rgba8" class="fnname">new_rgba8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of RGBA pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_bgra8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#160-162">source</a><h4 class="code-header">pub fn <a href="#method.new_bgra8" class="fnname">new_bgra8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of BGRA pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_bgr8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#165-167">source</a><h4 class="code-header">pub fn <a href="#method.new_bgr8" class="fnname">new_bgr8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of BGR pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_luma16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#170-172">source</a><h4 class="code-header">pub fn <a href="#method.new_luma16" class="fnname">new_luma16</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of grey pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_luma_a16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#176-178">source</a><h4 class="code-header">pub fn <a href="#method.new_luma_a16" class="fnname">new_luma_a16</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of grey
pixels with transparency.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_rgb16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#181-183">source</a><h4 class="code-header">pub fn <a href="#method.new_rgb16" class="fnname">new_rgb16</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of RGB pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_rgba16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#186-188">source</a><h4 class="code-header">pub fn <a href="#method.new_rgba16" class="fnname">new_rgba16</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Creates a dynamic image backed by a buffer of RGBA pixels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_decoder" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#191-195">source</a><h4 class="code-header">pub fn <a href="#method.from_decoder" class="fnname">from_decoder</a>&lt;'a&gt;(decoder: impl <a class="trait" href="trait.ImageDecoder.html" title="trait image::ImageDecoder">ImageDecoder</a>&lt;'a&gt;) -&gt; <a class="type" href="error/type.ImageResult.html" title="type image::error::ImageResult">ImageResult</a>&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Decodes an encoded image into a dynamic image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_rgb" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#199-203">source</a><h4 class="code-header">pub fn <a href="#method.to_rgb" class="fnname">to_rgb</a>(&amp;self) -&gt; <a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>to_rgb8</code></span></div></span></summary><div class="docblock"><p>Returns a copy of this image as an RGB image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_rgb8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#206-210">source</a><h4 class="code-header">pub fn <a href="#method.to_rgb8" class="fnname">to_rgb8</a>(&amp;self) -&gt; <a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a></h4></section></summary><div class="docblock"><p>Returns a copy of this image as an RGB image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_rgb16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#213-217">source</a><h4 class="code-header">pub fn <a href="#method.to_rgb16" class="fnname">to_rgb16</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a copy of this image as an RGB image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_rgba" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#221-225">source</a><h4 class="code-header">pub fn <a href="#method.to_rgba" class="fnname">to_rgba</a>(&amp;self) -&gt; <a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>to_rgba8</code></span></div></span></summary><div class="docblock"><p>Returns a copy of this image as an RGBA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_rgba8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#228-232">source</a><h4 class="code-header">pub fn <a href="#method.to_rgba8" class="fnname">to_rgba8</a>(&amp;self) -&gt; <a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a></h4></section></summary><div class="docblock"><p>Returns a copy of this image as an RGBA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_rgba16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#235-239">source</a><h4 class="code-header">pub fn <a href="#method.to_rgba16" class="fnname">to_rgba16</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a copy of this image as an RGBA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bgr" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#243-247">source</a><h4 class="code-header">pub fn <a href="#method.to_bgr" class="fnname">to_bgr</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>to_bgr8</code></span></div></span></summary><div class="docblock"><p>Returns a copy of this image as an BGR image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bgr8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#250-254">source</a><h4 class="code-header">pub fn <a href="#method.to_bgr8" class="fnname">to_bgr8</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a copy of this image as an BGR image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bgra" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#258-262">source</a><h4 class="code-header">pub fn <a href="#method.to_bgra" class="fnname">to_bgra</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>to_bgra8</code></span></div></span></summary><div class="docblock"><p>Returns a copy of this image as an BGRA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bgra8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#265-269">source</a><h4 class="code-header">pub fn <a href="#method.to_bgra8" class="fnname">to_bgra8</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a copy of this image as an BGRA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_luma" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#273-277">source</a><h4 class="code-header">pub fn <a href="#method.to_luma" class="fnname">to_luma</a>(&amp;self) -&gt; <a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>to_luma8</code></span></div></span></summary><div class="docblock"><p>Returns a copy of this image as a Luma image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_luma8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#280-284">source</a><h4 class="code-header">pub fn <a href="#method.to_luma8" class="fnname">to_luma8</a>(&amp;self) -&gt; <a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a></h4></section></summary><div class="docblock"><p>Returns a copy of this image as a Luma image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_luma16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#287-291">source</a><h4 class="code-header">pub fn <a href="#method.to_luma16" class="fnname">to_luma16</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Luma.html" title="struct image::Luma">Luma</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a copy of this image as a Luma image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_luma_alpha" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#295-299">source</a><h4 class="code-header">pub fn <a href="#method.to_luma_alpha" class="fnname">to_luma_alpha</a>(&amp;self) -&gt; <a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>to_luma_alpha8</code></span></div></span></summary><div class="docblock"><p>Returns a copy of this image as a LumaA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_luma_alpha8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#302-306">source</a><h4 class="code-header">pub fn <a href="#method.to_luma_alpha8" class="fnname">to_luma_alpha8</a>(&amp;self) -&gt; <a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a></h4></section></summary><div class="docblock"><p>Returns a copy of this image as a LumaA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_luma_alpha16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#309-313">source</a><h4 class="code-header">pub fn <a href="#method.to_luma_alpha16" class="fnname">to_luma_alpha16</a>(&amp;self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a copy of this image as a LumaA image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_rgb" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#320-325">source</a><h4 class="code-header">pub fn <a href="#method.into_rgb" class="fnname">into_rgb</a>(self) -&gt; <a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>into_rgb8</code></span></div></span></summary><div class="docblock"><p>Consume the image and returns a RGB image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_rgb8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#331-336">source</a><h4 class="code-header">pub fn <a href="#method.into_rgb8" class="fnname">into_rgb8</a>(self) -&gt; <a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a></h4></section></summary><div class="docblock"><p>Consume the image and returns a RGB image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_rgb16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#342-347">source</a><h4 class="code-header">pub fn <a href="#method.into_rgb16" class="fnname">into_rgb16</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Consume the image and returns a RGB image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_rgba" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#354-359">source</a><h4 class="code-header">pub fn <a href="#method.into_rgba" class="fnname">into_rgba</a>(self) -&gt; <a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>into_rgba8</code></span></div></span></summary><div class="docblock"><p>Consume the image and returns a RGBA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_rgba8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#365-370">source</a><h4 class="code-header">pub fn <a href="#method.into_rgba8" class="fnname">into_rgba8</a>(self) -&gt; <a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a></h4></section></summary><div class="docblock"><p>Consume the image and returns a RGBA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_rgba16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#376-381">source</a><h4 class="code-header">pub fn <a href="#method.into_rgba16" class="fnname">into_rgba16</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Consume the image and returns a RGBA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_bgr" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#388-393">source</a><h4 class="code-header">pub fn <a href="#method.into_bgr" class="fnname">into_bgr</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>into_bgra8</code></span></div></span></summary><div class="docblock"><p>Consume the image and returns a BGR image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_bgr8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#399-404">source</a><h4 class="code-header">pub fn <a href="#method.into_bgr8" class="fnname">into_bgr8</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Consume the image and returns a BGR image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_bgra" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#413-418">source</a><h4 class="code-header">pub fn <a href="#method.into_bgra" class="fnname">into_bgra</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>into_bgra8</code></span></div></span></summary><div class="docblock"><p>Consume the image and returns a BGRA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_bgra8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#424-429">source</a><h4 class="code-header">pub fn <a href="#method.into_bgra8" class="fnname">into_bgra8</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Consume the image and returns a BGRA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_luma" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#438-443">source</a><h4 class="code-header">pub fn <a href="#method.into_luma" class="fnname">into_luma</a>(self) -&gt; <a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>into_luma8</code></span></div></span></summary><div class="docblock"><p>Consume the image and returns a Luma image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_luma8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#449-454">source</a><h4 class="code-header">pub fn <a href="#method.into_luma8" class="fnname">into_luma8</a>(self) -&gt; <a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a></h4></section></summary><div class="docblock"><p>Consume the image and returns a Luma image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_luma16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#460-465">source</a><h4 class="code-header">pub fn <a href="#method.into_luma16" class="fnname">into_luma16</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Luma.html" title="struct image::Luma">Luma</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Consume the image and returns a Luma image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_luma_alpha" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#472-477">source</a><h4 class="code-header">pub fn <a href="#method.into_luma_alpha" class="fnname">into_luma_alpha</a>(self) -&gt; <a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: replaced by <code>into_luma_alpha8</code></span></div></span></summary><div class="docblock"><p>Consume the image and returns a LumaA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_luma_alpha8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#483-488">source</a><h4 class="code-header">pub fn <a href="#method.into_luma_alpha8" class="fnname">into_luma_alpha8</a>(self) -&gt; <a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a></h4></section></summary><div class="docblock"><p>Consume the image and returns a LumaA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_luma_alpha16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#494-499">source</a><h4 class="code-header">pub fn <a href="#method.into_luma_alpha16" class="fnname">into_luma_alpha16</a>(self) -&gt; <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Consume the image and returns a LumaA image.</p>
<p>If the image was already the correct format, it is returned as is.
Otherwise, a copy is created.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.crop" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#505-507">source</a><h4 class="code-header">pub fn <a href="#method.crop" class="fnname">crop</a>(&amp;mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Return a cut-out of this image delimited by the bounding rectangle.</p>
<p>Note: this method does <em>not</em> modify the object,
and its signature will be replaced with <code>crop_imm()</code>’s in the 0.24 release</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.crop_imm" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#510-512">source</a><h4 class="code-header">pub fn <a href="#method.crop_imm" class="fnname">crop_imm</a>(&amp;self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Return a cut-out of this image delimited by the bounding rectangle.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_rgb8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#515-520">source</a><h4 class="code-header">pub fn <a href="#method.as_rgb8" class="fnname">as_rgb8</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 8bit RGB image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_rgb8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#523-528">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_rgb8" class="fnname">as_mut_rgb8</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="type" href="type.RgbImage.html" title="type image::RgbImage">RgbImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 8bit RGB image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_bgr8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#531-536">source</a><h4 class="code-header">pub fn <a href="#method.as_bgr8" class="fnname">as_bgr8</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 8bit BGR image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_bgr8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#539-544">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_bgr8" class="fnname">as_mut_bgr8</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 8bit BGR image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_rgba8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#547-552">source</a><h4 class="code-header">pub fn <a href="#method.as_rgba8" class="fnname">as_rgba8</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 8bit RGBA image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_rgba8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#555-560">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_rgba8" class="fnname">as_mut_rgba8</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="type" href="type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 8bit RGBA image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_bgra8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#563-568">source</a><h4 class="code-header">pub fn <a href="#method.as_bgra8" class="fnname">as_bgra8</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 8bit BGRA image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_bgra8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#571-576">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_bgra8" class="fnname">as_mut_bgra8</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 8bit RGBA image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_luma8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#579-584">source</a><h4 class="code-header">pub fn <a href="#method.as_luma8" class="fnname">as_luma8</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 8bit Grayscale image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_luma8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#587-592">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_luma8" class="fnname">as_mut_luma8</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="type" href="type.GrayImage.html" title="type image::GrayImage">GrayImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 8bit Grayscale image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_luma_alpha8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#595-600">source</a><h4 class="code-header">pub fn <a href="#method.as_luma_alpha8" class="fnname">as_luma_alpha8</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 8bit Grayscale image with an alpha channel</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_luma_alpha8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#603-608">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_luma_alpha8" class="fnname">as_mut_luma_alpha8</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="type" href="type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 8bit Grayscale image with an alpha channel</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_rgb16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#611-616">source</a><h4 class="code-header">pub fn <a href="#method.as_rgb16" class="fnname">as_rgb16</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 16bit RGB image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_rgb16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#619-624">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_rgb16" class="fnname">as_mut_rgb16</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 16bit RGB image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_rgba16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#627-632">source</a><h4 class="code-header">pub fn <a href="#method.as_rgba16" class="fnname">as_rgba16</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 16bit RGBA image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_rgba16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#635-640">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_rgba16" class="fnname">as_mut_rgba16</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 16bit RGBA image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_luma16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#643-648">source</a><h4 class="code-header">pub fn <a href="#method.as_luma16" class="fnname">as_luma16</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Luma.html" title="struct image::Luma">Luma</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 16bit Grayscale image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_luma16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#651-656">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_luma16" class="fnname">as_mut_luma16</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.Luma.html" title="struct image::Luma">Luma</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 16bit Grayscale image</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_luma_alpha16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#659-664">source</a><h4 class="code-header">pub fn <a href="#method.as_luma_alpha16" class="fnname">as_luma_alpha16</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a reference to an 16bit Grayscale image with an alpha channel</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_luma_alpha16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#667-672">source</a><h4 class="code-header">pub fn <a href="#method.as_mut_luma_alpha16" class="fnname">as_mut_luma_alpha16</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a>&lt;<a class="struct" href="struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a mutable reference to an 16bit Grayscale image with an alpha channel</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_flat_samples_u8" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#675-685">source</a><h4 class="code-header">pub fn <a href="#method.as_flat_samples_u8" class="fnname">as_flat_samples_u8</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="flat/struct.FlatSamples.html" title="struct image::flat::FlatSamples">FlatSamples</a>&lt;&amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a view on the raw sample buffer for 8 bit per channel images.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_flat_samples_u16" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#688-696">source</a><h4 class="code-header">pub fn <a href="#method.as_flat_samples_u16" class="fnname">as_flat_samples_u16</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="flat/struct.FlatSamples.html" title="struct image::flat::FlatSamples">FlatSamples</a>&lt;&amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>]&gt;&gt;</h4></section></summary><div class="docblock"><p>Return a view on the raw sample buffer for 16 bit per channel images.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_bytes" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#699-701">source</a><h4 class="code-header">pub fn <a href="#method.as_bytes" class="fnname">as_bytes</a>(&amp;self) -&gt; &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]</span><code class="content"><span class="where fmt-newline">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]</span><span class="where fmt-newline">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for &amp;mut [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]</span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Return this image’s pixels as a native endian byte slice.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_bytes" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#706-708">source</a><h4 class="code-header">pub fn <a href="#method.into_bytes" class="fnname">into_bytes</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;</h4></section></summary><div class="docblock"><p>Return this image’s pixels as a byte vector. If the <code>ImageBuffer</code>
container is <code>Vec&lt;u8&gt;</code>, this operation is free. Otherwise, a copy
is returned.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bytes" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#711-713">source</a><h4 class="code-header">pub fn <a href="#method.to_bytes" class="fnname">to_bytes</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;</h4></section></summary><div class="docblock"><p>Return a copy of this image’s pixels as a byte vector.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.color" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#716-729">source</a><h4 class="code-header">pub fn <a href="#method.color" class="fnname">color</a>(&amp;self) -&gt; <a class="enum" href="enum.ColorType.html" title="enum image::ColorType">ColorType</a></h4></section></summary><div class="docblock"><p>Return this image’s color type.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.grayscale" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#732-745">source</a><h4 class="code-header">pub fn <a href="#method.grayscale" class="fnname">grayscale</a>(&amp;self) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Return a grayscale version of this image.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.invert" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#749-751">source</a><h4 class="code-header">pub fn <a href="#method.invert" class="fnname">invert</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Invert the colors of this image.
This method operates inplace.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.resize" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#757-762">source</a><h4 class="code-header">pub fn <a href="#method.resize" class="fnname">resize</a>(&amp;self, nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, filter: <a class="enum" href="imageops/enum.FilterType.html" title="enum image::imageops::FilterType">FilterType</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Resize this image using the specified filter algorithm.
Returns a new image. The image’s aspect ratio is preserved.
The image is scaled to the maximum possible size that fits
within the bounds specified by <code>nwidth</code> and <code>nheight</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.resize_exact" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#767-774">source</a><h4 class="code-header">pub fn <a href="#method.resize_exact" class="fnname">resize_exact</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;filter: <a class="enum" href="imageops/enum.FilterType.html" title="enum image::imageops::FilterType">FilterType</a><br>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Resize this image using the specified filter algorithm.
Returns a new image. Does not preserve aspect ratio.
<code>nwidth</code> and <code>nheight</code> are the new image’s dimensions</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.thumbnail" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#784-788">source</a><h4 class="code-header">pub fn <a href="#method.thumbnail" class="fnname">thumbnail</a>(&amp;self, nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Scale this image down to fit within a specific size.
Returns a new image. The image’s aspect ratio is preserved.
The image is scaled to the maximum possible size that fits
within the bounds specified by <code>nwidth</code> and <code>nheight</code>.</p>
<p>This method uses a fast integer algorithm where each source
pixel contributes to exactly one target pixel.
May give aliasing artifacts if new size is close to old size.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.thumbnail_exact" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#796-798">source</a><h4 class="code-header">pub fn <a href="#method.thumbnail_exact" class="fnname">thumbnail_exact</a>(&amp;self, nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Scale this image down to a specific size.
Returns a new image. Does not preserve aspect ratio.
<code>nwidth</code> and <code>nheight</code> are the new image’s dimensions.
This method uses a fast integer algorithm where each source
pixel contributes to exactly one target pixel.
May give aliasing artifacts if new size is close to old size.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.resize_to_fill" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#806-825">source</a><h4 class="code-header">pub fn <a href="#method.resize_to_fill" class="fnname">resize_to_fill</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;filter: <a class="enum" href="imageops/enum.FilterType.html" title="enum image::imageops::FilterType">FilterType</a><br>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Resize this image using the specified filter algorithm.
Returns a new image. The image’s aspect ratio is preserved.
The image is scaled to the maximum possible size that fits
within the larger (relative to aspect ratio) of the bounds
specified by <code>nwidth</code> and <code>nheight</code>, then cropped to
fit within the other bound.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.blur" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#829-831">source</a><h4 class="code-header">pub fn <a href="#method.blur" class="fnname">blur</a>(&amp;self, sigma: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Performs a Gaussian blur on this image.
<code>sigma</code> is a measure of how much to blur by.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.unsharpen" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#838-840">source</a><h4 class="code-header">pub fn <a href="#method.unsharpen" class="fnname">unsharpen</a>(&amp;self, sigma: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, threshold: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Performs an unsharpen mask on this image.
<code>sigma</code> is the amount to blur the image by.
<code>threshold</code> is a control of how much to sharpen.</p>
<p>See <a href="https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking">https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.filter3x3" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#843-849">source</a><h4 class="code-header">pub fn <a href="#method.filter3x3" class="fnname">filter3x3</a>(&amp;self, kernel: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>]) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Filters this image with the specified 3x3 kernel.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.adjust_contrast" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#854-856">source</a><h4 class="code-header">pub fn <a href="#method.adjust_contrast" class="fnname">adjust_contrast</a>(&amp;self, c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Adjust the contrast of this image.
<code>contrast</code> is the amount to adjust the contrast by.
Negative values decrease the contrast and positive values increase the contrast.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.brighten" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#861-863">source</a><h4 class="code-header">pub fn <a href="#method.brighten" class="fnname">brighten</a>(&amp;self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Brighten the pixels of this image.
<code>value</code> is the amount to brighten each pixel by.
Negative values decrease the brightness and positive values increase it.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.huerotate" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#869-871">source</a><h4 class="code-header">pub fn <a href="#method.huerotate" class="fnname">huerotate</a>(&amp;self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Hue rotate the supplied image.
<code>value</code> is the degrees to rotate each pixel by.
0 and 360 do nothing, the rest rotates by the given degree value.
just like the css webkit filter hue-rotate(180)</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flipv" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#874-876">source</a><h4 class="code-header">pub fn <a href="#method.flipv" class="fnname">flipv</a>(&amp;self) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Flip this image vertically</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fliph" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#879-881">source</a><h4 class="code-header">pub fn <a href="#method.fliph" class="fnname">fliph</a>(&amp;self) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Flip this image horizontally</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rotate90" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#884-886">source</a><h4 class="code-header">pub fn <a href="#method.rotate90" class="fnname">rotate90</a>(&amp;self) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Rotate this image 90 degrees clockwise.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rotate180" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#889-891">source</a><h4 class="code-header">pub fn <a href="#method.rotate180" class="fnname">rotate180</a>(&amp;self) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Rotate this image 180 degrees clockwise.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rotate270" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#894-896">source</a><h4 class="code-header">pub fn <a href="#method.rotate270" class="fnname">rotate270</a>(&amp;self) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class="docblock"><p>Rotate this image 270 degrees clockwise.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_to" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#899-1010">source</a><h4 class="code-header">pub fn <a href="#method.write_to" class="fnname">write_to</a>&lt;W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, F:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="enum.ImageOutputFormat.html" title="enum image::ImageOutputFormat">ImageOutputFormat</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>W,<br>&nbsp;&nbsp;&nbsp;&nbsp;format: F<br>) -&gt; <a class="type" href="error/type.ImageResult.html" title="type image::error::ImageResult">ImageResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Encode this image and write it to <code>w</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.save" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1015-1022">source</a><h4 class="code-header">pub fn <a href="#method.save" class="fnname">save</a>&lt;Q&gt;(&amp;self, path: Q) -&gt; <a class="type" href="error/type.ImageResult.html" title="type image::error::ImageResult">ImageResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;,</span></h4></section></summary><div class="docblock"><p>Saves the buffer to a file at the path specified.</p>
<p>The image format is derived from the file extension.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.save_with_format" class="method has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1029-1036">source</a><h4 class="code-header">pub fn <a href="#method.save_with_format" class="fnname">save_with_format</a>&lt;Q&gt;(&amp;self, path: Q, format: <a class="enum" href="enum.ImageFormat.html" title="enum image::ImageFormat">ImageFormat</a>) -&gt; <a class="type" href="error/type.ImageResult.html" title="type image::error::ImageResult">ImageResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;,</span></h4></section></summary><div class="docblock"><p>Saves the buffer to a file at the specified path in
the specified format.</p>
<p>See <a href="fn.save_buffer_with_format.html"><code>save_buffer_with_format</code></a> for
supported types.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#impl-Clone-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#132-134">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">const fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#impl-Debug-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-GenericImage-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1062-1103">source</a><a href="#impl-GenericImage-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.blend_pixel" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1080-1093">source</a><a href="#method.blend_pixel" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImage.html#tymethod.blend_pixel" class="fnname">blend_pixel</a>(&amp;mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: <a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;)</h4></section></summary><div class="docblock"><p>DEPRECATED: Use iterator <code>pixels_mut</code> to blend the pixels directly.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_pixel_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1096-1098">source</a><a href="#method.get_pixel_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImage.html#tymethod.get_pixel_mut" class="fnname">get_pixel_mut</a>(&amp;mut self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; &amp;mut <a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;</h4></section></summary><div class="docblock"><p>DEPRECATED: Do not use is function: It is unimplemented!</p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.InnerImage" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.InnerImage" class="anchor"></a><h4 class="code-header">type <a href="trait.GenericImage.html#associatedtype.InnerImage" class="associatedtype">InnerImage</a> = <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class='docblock'>Underlying image type. This is mainly used by SubImages in order to
always have a reference to the original image. This allows for less
indirections and it eases the use of nested SubImages. <a href="trait.GenericImage.html#associatedtype.InnerImage">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.put_pixel" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1065-1078">source</a><a href="#method.put_pixel" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImage.html#tymethod.put_pixel" class="fnname">put_pixel</a>(&amp;mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: <a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;)</h4></section></summary><div class='docblock'>Put a pixel at location (x, y). Indexed from top left. <a href="trait.GenericImage.html#tymethod.put_pixel">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.inner_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1100-1102">source</a><a href="#method.inner_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImage.html#tymethod.inner_mut" class="fnname">inner_mut</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a></h4></section></summary><div class='docblock'>Returns a mutable reference to the underlying image.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.unsafe_put_pixel" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#834-836">source</a><a href="#method.unsafe_put_pixel" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.GenericImage.html#method.unsafe_put_pixel" class="fnname">unsafe_put_pixel</a>(&amp;mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>)</h4></section></summary><div class='docblock'>Puts a pixel at location (x, y). Indexed from top left. <a href="trait.GenericImage.html#method.unsafe_put_pixel">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.copy_from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#858-877">source</a><a href="#method.copy_from" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImage.html#method.copy_from" class="fnname">copy_from</a>&lt;O&gt;(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>O, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="type" href="error/type.ImageResult.html" title="type image::error::ImageResult">ImageResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;O: <a class="trait" href="trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a>&lt;Pixel = Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>&gt;,</span></h4></section></summary><div class='docblock'>Copies all of the pixels from another image into this image. <a href="trait.GenericImage.html#method.copy_from">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.copy_within" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#886-919">source</a><a href="#method.copy_within" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImage.html#method.copy_within" class="fnname">copy_within</a>(&amp;mut self, source: <a class="struct" href="math/struct.Rect.html" title="struct image::math::Rect">Rect</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Copies all of the pixels from one part of this image to another part of this image. <a href="trait.GenericImage.html#method.copy_within">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_image" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#927-935">source</a><a href="#method.sub_image" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImage.html#method.sub_image" class="fnname">sub_image</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -&gt; <a class="struct" href="struct.SubImage.html" title="struct image::SubImage">SubImage</a>&lt;&amp;mut Self::<a class="associatedtype" href="trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a>&gt;</h4></section></summary><div class='docblock'>Returns a mutable subimage that is a view into this image.
If you want an immutable subimage instead, use <a href="trait.GenericImageView.html#method.view" title="GenericImageView::view"><code>GenericImageView::view</code></a>
The coordinates set the position of the top left corner of the SubImage. <a href="trait.GenericImage.html#method.sub_image">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-GenericImageView-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1040-1059">source</a><a href="#impl-GenericImageView-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Pixel" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Pixel" class="anchor"></a><h4 class="code-header">type <a href="trait.GenericImageView.html#associatedtype.Pixel" class="associatedtype">Pixel</a> = <a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;</h4></section></summary><div class='docblock'>The type of pixel.</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.InnerImageView" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.InnerImageView" class="anchor"></a><h4 class="code-header">type <a href="trait.GenericImageView.html#associatedtype.InnerImageView" class="associatedtype">InnerImageView</a> = <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></summary><div class='docblock'>Underlying image type. This is mainly used by SubImages in order to
always have a reference to the original image. This allows for less
indirections and it eases the use of nested SubImages. <a href="trait.GenericImageView.html#associatedtype.InnerImageView">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.dimensions" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1044-1046">source</a><a href="#method.dimensions" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#tymethod.dimensions" class="fnname">dimensions</a>(&amp;self) -&gt; (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</h4></section></summary><div class='docblock'>The width and height of this image.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bounds" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1048-1050">source</a><a href="#method.bounds" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#tymethod.bounds" class="fnname">bounds</a>(&amp;self) -&gt; (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</h4></section></summary><div class='docblock'>The bounding rectangle of this image.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_pixel" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1052-1054">source</a><a href="#method.get_pixel" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#tymethod.get_pixel" class="fnname">get_pixel</a>(&amp;self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="struct" href="struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;</h4></section></summary><div class='docblock'>Returns the pixel located at (x, y). Indexed from top left. <a href="trait.GenericImageView.html#tymethod.get_pixel">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.inner" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1056-1058">source</a><a href="#method.inner" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#tymethod.inner" class="fnname">inner</a>(&amp;self) -&gt; &amp;Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.InnerImageView" title="type image::GenericImageView::InnerImageView">InnerImageView</a></h4></section></summary><div class='docblock'>Returns a reference to the underlying image.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.width" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#738-741">source</a><a href="#method.width" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#method.width" class="fnname">width</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>The width of this image.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.height" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#744-747">source</a><a href="#method.height" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#method.height" class="fnname">height</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>The height of this image.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.in_bounds" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#753-756">source</a><a href="#method.in_bounds" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#method.in_bounds" class="fnname">in_bounds</a>(&amp;self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns true if this x, y coordinate is contained inside the image.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.unsafe_get_pixel" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#775-777">source</a><a href="#method.unsafe_get_pixel" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.GenericImageView.html#method.unsafe_get_pixel" class="fnname">unsafe_get_pixel</a>(&amp;self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a></h4></section></summary><div class='docblock'>Returns the pixel located at (x, y). Indexed from top left. <a href="trait.GenericImageView.html#method.unsafe_get_pixel">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pixels" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#782-792">source</a><a href="#method.pixels" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#method.pixels" class="fnname">pixels</a>(&amp;self) -&gt; <a class="struct" href="struct.Pixels.html" title="struct image::Pixels">Pixels</a>&lt;'_, Self&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.Pixels.html" title="struct image::Pixels">Pixels</a>&lt;'a, I&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;'a, I:&nbsp;<a class="trait" href="trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.Pixels.html" title="struct image::Pixels">Pixels</a>&lt;'a, I&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, I::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>);</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Returns an Iterator over the pixels of this image.
The iterator yields the coordinates of each pixel
along with their value <a href="trait.GenericImageView.html#method.pixels">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.view" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#800-802">source</a><a href="#method.view" class="anchor"></a><h4 class="code-header">fn <a href="trait.GenericImageView.html#method.view" class="fnname">view</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -&gt; <a class="struct" href="struct.SubImage.html" title="struct image::SubImage">SubImage</a>&lt;&amp;Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.InnerImageView" title="type image::GenericImageView::InnerImageView">InnerImageView</a>&gt;</h4></section></summary><div class='docblock'>Returns an subimage that is an immutable view into this image.
You can use <a href="trait.GenericImage.html#method.sub_image" title="GenericImage::sub_image"><code>GenericImage::sub_image</code></a> if you need a mutable view instead.
The coordinates set the position of the top left corner of the view. <a href="trait.GenericImageView.html#method.view">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Hash-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#impl-Hash-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a>&lt;__H:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>&gt;(&amp;self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>__H)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#237-239">source</a></span><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a>&lt;H&gt;(data: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>H)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,</span></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CDynamicImage%3E-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#impl-PartialEq%3CDynamicImage%3E-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a>&gt; for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#227">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">const fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne">Read more</a></div></details></div></details><section id="impl-Eq-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#impl-Eq-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section><section id="impl-StructuralEq-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#impl-StructuralEq-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section><section id="impl-StructuralPartialEq-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#42">source</a><a href="#impl-StructuralPartialEq-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-DynamicImage" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section><section id="impl-Send-for-DynamicImage" class="impl has-srclink"><a href="#impl-Send-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section><section id="impl-Sync-for-DynamicImage" class="impl has-srclink"><a href="#impl-Sync-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section><section id="impl-Unpin-for-DynamicImage" class="impl has-srclink"><a href="#impl-Unpin-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section><section id="impl-UnwindSafe-for-DynamicImage" class="impl has-srclink"><a href="#impl-UnwindSafe-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#200">source</a><a href="#impl-Any-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#201">source</a><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">source</a><a href="#impl-Borrow%3CT%3E-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220">source</a><a href="#impl-BorrowMut%3CT%3E-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#733">source</a><a href="#impl-From%3CT%3E-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#736">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#717">source</a><a href="#impl-Into%3CU%3E-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#725">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#83">source</a><a href="#impl-ToOwned-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#775">source</a><a href="#impl-TryFrom%3CU%3E-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#781">source</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760">source</a><a href="#impl-TryInto%3CU%3E-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#766">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="image" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>