Method Cairo.stride_for_width()
- Method
stride_for_width
int
stride_for_width(int
format
,int
width
)- 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.