Functions
- Returns
Surfacewithout backing pixels. Drawing tocrate::Canvasreturned fromSurfacehas no effect. CallingSurface::image_snapshot()on returnedSurfacereturnsNone. - Allocates raster
Surface.crate::Canvasreturned bySurfacedraws directly into pixels. Allocates and zeroes pixel memory. Pixel memory size isimage_info.height()timesrow_bytes, or timesimage_info.min_row_bytes()ifrow_bytesis zero. Pixel memory is deleted whenSurfaceis deleted. - Allocates raster
Surface.crate::Canvasreturned bySurfacedraws directly into pixels. Allocates and zeroes pixel memory. Pixel memory size is height times width times four. Pixel memory is deleted whenSurfaceis deleted.