Skip to content

Commit

Permalink
Update resize and blurs doc (#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee authored Feb 17, 2025
1 parent 10d8b66 commit 68159de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/imageops/fast_blur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: Pixel>(
image_buffer: &ImageBuffer<P, Vec<P::Subpixel>>,
Expand Down
2 changes: 2 additions & 0 deletions src/imageops/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<I: GenericImageView>(
image: &I,
nwidth: u32,
Expand Down Expand Up @@ -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<I: GenericImageView>(
image: &I,
sigma: f32,
Expand Down

0 comments on commit 68159de

Please sign in to comment.