Module surfaces
Enums§
Functions§
- null
- Returns
Surfacewithout backing pixels. Drawing tocrate::Canvasreturned fromSurfacehas no effect. CallingSurface::image_snapshot()on returnedSurfacereturnsNone. - raster
- 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. - raster_
n32_ premul - 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. - wrap_
pixels - Allocates raster
Surface.crate::Canvasreturned bySurfacedraws directly into pixels.