Skip to content

Commit

Permalink
Direct user to DynamicImage for converting
Browse files Browse the repository at this point in the history
Attempts to address the documentation suggestion in #1252

A lot of the methods for modifying an image are found in the ImageBuffer
so that is where I was looking when trying to convert an image to a
different Pixel type.
  • Loading branch information
robyoung committed Jun 5, 2020
1 parent 2276d72 commit 2fb8156
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/buffer.rs
Expand Up @@ -416,6 +416,8 @@ where
/// [`RgbImage`]: type.RgbImage.html
/// [`GrayImage`]: type.GrayImage.html
///
/// To convert between images of different Pixel types use [`DynamicImage`]: enum.DynamicImage.html
///
/// ## Examples
///
/// Create a simple canvas and paint a small cross.
Expand Down

0 comments on commit 2fb8156

Please sign in to comment.