vizia::vg::shaders

Function image

pub fn image<'a>(
    image: impl Into<RCHandle<SkImage>>,
    tm: (SkTileMode, SkTileMode),
    options: &SamplingOptions,
    matrix: impl Into<Option<&'a Matrix>>,
) -> Option<RCHandle<SkShader>>
Expand description

Create an Shader that will sample the ‘image’. This is equivalent to Image::to_shader.