We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example on this page https://pythonhosted.org/cairocffi/api.html causes an exception:
from cairocffi import ImageSurface stride = ImageSurface.stride_for_width(format, width) data = bytearray(stride * height) surface = ImageSurface(format, width, height, data, stride) ## -- End pasted text -- --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-e39a39a18953> in <module>() 1 from cairocffi import ImageSurface ----> 2 stride = ImageSurface.stride_for_width(format, width) 3 data = bytearray(stride * height) 4 surface = ImageSurface(format, width, height, data, stride)
AttributeError: type object 'ImageSurface' has no attribute 'stride_for_width'
The text was updated successfully, but these errors were encountered:
2a2255a
Good catch, thanks!
Sorry, something went wrong.
No branches or pull requests
The example on this page https://pythonhosted.org/cairocffi/api.html causes an exception:
AttributeError: type object 'ImageSurface' has no attribute 'stride_for_width'
The text was updated successfully, but these errors were encountered: