Function image
pub fn image<'a>(
image: impl Into<RCHandle<SkImage>>,
src_rect: impl Into<Option<&'a Rect>>,
dst_rect: impl Into<Option<&'a Rect>>,
sampling: impl Into<Option<SamplingOptions>>,
) -> Option<RCHandle<SkImageFilter>>Expand description
Create a filter that draws the ‘src_rect’ portion of image into ‘dst_rect’ using the given
filter quality. Similar to crate::Canvas::draw_image_rect().
image- The image that is output by the filter, subset by ‘srcRect’.src_rect- The source pixels sampled into ‘dstRect’dst_rect- The local rectangle to draw the image into.sampling- The sampling to use when drawing the image.