Createa an image surface from an array

cairo_image_surface_create_from_array(arr, maxval = 1)

Arguments

arr

matrix, RGB array or RGBA array

maxval

maximum value of colour representation. Usually 1.

See also