diff --git a/src/imageops/fast_blur.rs b/src/imageops/fast_blur.rs index 8f55160276..289aa9b359 100644 --- a/src/imageops/fast_blur.rs +++ b/src/imageops/fast_blur.rs @@ -5,6 +5,7 @@ use crate::{ImageBuffer, Pixel, Primitive}; /// Approximation of Gaussian blur after /// Kovesi, P.: Fast Almost-Gaussian Filtering The Australian Pattern /// Recognition Society Conference: DICTA 2010. December 2010. Sydney. +/// This method assumes alpha pre-multiplication for images that contain non-constant alpha. #[must_use] pub fn fast_blur( image_buffer: &ImageBuffer>, diff --git a/src/imageops/sample.rs b/src/imageops/sample.rs index d40e7e3c9b..dc79552fd8 100644 --- a/src/imageops/sample.rs +++ b/src/imageops/sample.rs @@ -930,6 +930,7 @@ where /// Resize the supplied image to the specified dimensions. /// ```nwidth``` and ```nheight``` are the new dimensions. /// ```filter``` is the sampling filter to use. +/// This method assumes alpha pre-multiplication for images that contain non-constant alpha. pub fn resize( image: &I, nwidth: u32, @@ -989,6 +990,7 @@ where /// ```sigma``` is a measure of how much to blur by. /// Use [`crate::imageops::fast_blur()`] for a faster but less /// accurate version. +/// This method assumes alpha pre-multiplication for images that contain non-constant alpha. pub fn blur( image: &I, sigma: f32,