Method Cairo.stride_for_width()
- Method
stride_for_width
intstride_for_width(intformat,intwidth)- Description
This function provides a stride value that will respect all alignment requirements of the accelerated image-rendering code within cairo.
- Parameter
format A cairo format
- Parameter
width The desired width of an image surface to be created.
- Returns
the appropriate stride to use given the desired format and width, or -1 if either the format is invalid or the width too large.