skia_safe::image_filters

Function offset

Source
pub fn offset(
    offset: impl Into<Vector>,
    input: impl Into<Option<ImageFilter>>,
    crop_rect: impl Into<CropRect>,
) -> Option<ImageFilter>
Expand description

Create a filter that offsets the input filter by the given vector.

  • offset - The offset in local space that the image is shifted.
  • input - The input that will be moved, if null the source bitmap is used instead.
  • crop_rect - Optional rectangle to crop the input and output.