unsigned char * cairo_image_surface_get_data (cairo_surface_t *surface)

cairo_image_surface_get_array(surface, nchannel = 4)

Arguments

surface

cairo_surface_t *

nchannel

1 = grey, 3 = rgb, 4 = rgba

Value

matrix or array of real numbers in range [0, 1]

See also