Skip to content

Commit

Permalink
minor doc edits
Browse files Browse the repository at this point in the history
  • Loading branch information
covercash2 committed Jun 12, 2020
1 parent 8509e06 commit 863da27
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions druid/src/widget/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::{

/// A widget that renders a bitmap Image.
///
/// Contains data about how to fill given space and interpolate pixels.
/// Contains data about how to fill the given space and interpolate pixels.
/// Configuration options are provided via the builder pattern.
///
/// Note: when [scaling a bitmap image], interpolation can lead to blurry
Expand All @@ -51,10 +51,10 @@ use crate::{
///
/// let image_data = ImageData::empty();
/// let image_widget = Image::new(image_data)
/// // set fill strategy
/// // set the fill strategy
/// .fill_mode(FillStrat::Fill)
/// // set interpolation mode
/// .interpolation_mode(InterpolationMode::NearestNeighbor);
/// // set the interpolation mode
/// .interpolation_mode(InterpolationMode::Bilinear);
/// ```
/// Create an image widget and configure it using setters
/// ```
Expand All @@ -65,10 +65,10 @@ use crate::{
///
/// let image_data = ImageData::empty();
/// let mut image_widget = Image::new(image_data);
/// // set fill strategy
/// // set the fill strategy
/// image_widget.set_fill_mode(FillStrat::FitWidth);
/// // set interpolation mode
/// image_widget.set_interpolation_mode(InterpolationMode::NearestNeighbor);
/// // set the interpolation mode
/// image_widget.set_interpolation_mode(InterpolationMode::Bilinear);
/// ```
///
/// [scaling a bitmap image]: https://en.wikipedia.org/wiki/Image_scaling
Expand Down Expand Up @@ -156,7 +156,7 @@ impl<T: Data> Widget<T> for Image {
}
}

/// Loaded image data.
/// Processed image data.
///
/// By default, Druid does not parse image data.
/// However, enabling [the `image` feature]
Expand Down

0 comments on commit 863da27

Please sign in to comment.