Function vizia::vg::surfaces::null

pub fn null(size: impl Into<ISize>) -> Option<RCHandle<SkSurface>>
Expand description

Returns Surface without backing pixels. Drawing to crate::Canvas returned from Surface has no effect. Calling Surface::image_snapshot() on returned Surface returns None.

  • width - one or greater
  • height - one or greater Returns: Surface if width and height are positive; otherwise, None

example: https://fiddle.skia.org/c/@Surface_MakeNull