Get the stride of the image surface in bytes

cairo_image_surface_get_stride(surface)

Arguments

surface

[cairo_surface_t *] a #cairo_image_surface_t

Value

[int]

Details

Return value: the stride of the image surface in bytes (or 0 if surface is not an image surface). The stride is the distance in bytes from the beginning of one row of the image data to the beginning of the next row.

Since: 1.2

C function prototype: int cairo_image_surface_get_stride (cairo_surface_t *surface)

See also