Function 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 greaterheight
- one or greater
Returns: Surface
if width and height are positive; otherwise, None