Enums§
Functions§
- Returns
Surface
without backing pixels. Drawing tocrate::Canvas
returned fromSurface
has no effect. CallingSurface::image_snapshot()
on returnedSurface
returnsNone
. - Allocates raster
Surface
.crate::Canvas
returned bySurface
draws directly into pixels. Allocates and zeroes pixel memory. Pixel memory size isimage_info.height()
timesrow_bytes
, or timesimage_info.min_row_bytes()
ifrow_bytes
is zero. Pixel memory is deleted whenSurface
is deleted. - Allocates raster
Surface
.crate::Canvas
returned bySurface
draws directly into pixels. Allocates and zeroes pixel memory. Pixel memory size is height times width times four. Pixel memory is deleted whenSurface
is deleted.