freetypy.Bitmap.buffer

Bitmap.buffer

Get the bitmap’s contents as a buffer.

In most cases, the preferred method to get the data is to cast the Bitmap object to a memoryview, since that will also have size and type information.